Skip to content

Commit

Permalink
use shutil.copy instead of rename to support cross filesystems
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphaltip committed Jan 28, 2022
1 parent 6874494 commit b78d9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AAFTF/sourpurge.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def run(parser,args):
if '.' in baseinput:
baseinput = baseinput.rsplit('.',1)[0]

os.rename(sourmashTSV, baseinput+'.sourmash-taxonomy.csv')
shutil.copy(sourmashTSV, baseinput+'.sourmash-taxonomy.csv')

if not args.debug:
SafeRemove(args.workdir)
Expand Down

0 comments on commit b78d9f5

Please sign in to comment.