amnh / PCG

𝙋𝙝𝙮𝙡𝙤𝙜𝙚𝙣𝙚𝙩𝙞𝙘 𝘾𝙤𝙢𝙥𝙤𝙣𝙚𝙣𝙩 𝙂𝙧𝙖𝙥𝙝 ⸺ Haskell program and libraries for general phylogenetic graph search
28 stars 1 forks source link

Have REPORT command move files if they exist instead of overwritting. #122

Closed recursion-ninja closed 5 years ago

recursion-ninja commented 5 years ago

Currently we default to appending data if the file exists. I often assume that the top of the file contains new data. We should move old files and add a .0 suffix, or a .1 suffix or a .2 suffix etc.

This way we don't get confused by looking at old data thinking that it is new data.

recursion-ninja commented 5 years ago

This feature has been implemented here 2f157a6.