fedarko / strainFlye

Pipeline for analyzing (rare) mutations in metagenome-assembled genomes
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Notes on overwriting #34

Open fedarko opened 2 years ago

fedarko commented 2 years ago

We should probably try to keep this consistent.

It probably makes sense to use Click to mandate exists=False for both directories and files here, in order to avoid deleting sensitive stuff where possible. That should be good enough; there are going to be annoying race conditions (e.g. someone creates a file after we check for its existence but before we'd write stuff out), but at that point I think we can say that this sort of "data loss" is not our problem.

Takes as input an output directory and [currently] overwrites stuff in there without asking

Takes as input direct filename(s) and [currently] overwrites if they already exist