mirror of
https://github.com/arsenetar/send2trash.git
synced 2024-12-03 19:59:02 +00:00
Merge pull request #90 from yogeshiitm/master
Fix bug when source and destination directories are on different file systems
This commit is contained in:
commit
78fa300cac
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user