cu-mkp/manuscript-object

delete previous derivatives when writing derivatives

Closed this issue · 1 comments

During a not dry run (a wet run?) make sure to delete the old derivatives before writing them, to avoid duplicates if we change the naming scheme (or, ahem, accidentally use the wrong naming scheme).

shutil.rmtree() is the best function for this.