gbouras13 / pharokka

fast phage annotation program
MIT License
146 stars 14 forks source link

Add validation if out directory exists #271

Closed gbouras13 closed 1 year ago

gbouras13 commented 1 year ago

The error is pretty good but add explicit check

Traceback (most recent call last):
  File "~pharokka.py", line 57, in <module>
    out_dir = input_commands.instantiate_dirs(args.outdir, args.meta, args.force)
  File "~/pharokka/bin/input_commands.py", line 53, in instantiate_dirs
    os.mkdir(output_dir)
FileExistsError: [Errno 17] File exists: 'NC_007458.fasta'
gbouras13 commented 1 year ago

Fixed by #275