Skip to content

Commit

Permalink
Merge pull request #90 from yogeshiitm/master
Browse files Browse the repository at this point in the history
Fix bug when source and destination directories are on different file systems
  • Loading branch information
arsenetar committed Mar 28, 2024
2 parents 0a48c26 + baeb9e5 commit 78fa300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion send2trash/plat_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def trash_move(src, dst, topdir=None, cross_dev=False):
f.write(info_for(src, topdir))
destpath = op.join(filespath, destname)
if cross_dev:
shutil.move(src, destpath)
shutil.move(fsdecode(src), fsdecode(destpath))
else:
os.rename(src, destpath)

Expand Down

0 comments on commit 78fa300

Please sign in to comment.