1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-02-10 23:01:38 +00:00

Merge pull request #47 from pracedru/master

Update plat_other.py
This commit is contained in:
2021-01-21 19:00:46 -06:00
committed by GitHub

View File

@@ -111,9 +111,9 @@ def trash_move(src, dst, topdir=None):
check_create(filespath) check_create(filespath)
check_create(infopath) check_create(infopath)
os.rename(src, op.join(filespath, destname))
with open(op.join(infopath, destname + INFO_SUFFIX), "w") as f: with open(op.join(infopath, destname + INFO_SUFFIX), "w") as f:
f.write(info_for(src, topdir)) f.write(info_for(src, topdir))
os.rename(src, op.join(filespath, destname))
def find_mount_point(path): def find_mount_point(path):