When giving an output like ~/out where out is a dir, the script will fail as it tries to write out as a file (due to a lack of trailing '/').
Instead, it should recognize this is a directory and write the file to that directory (using default file naming)
When giving an output like ~/out where out is a dir, the script will fail as it tries to write out as a file (due to a lack of trailing '/').
Instead, it should recognize this is a directory and write the file to that directory (using default file naming)