Should "mkdir -p" on the output file. Or at least throw an error if it can't write to it.
Should "mkdir -p" on the output file.
Or at least throw an error if it can't write to it.