1
0
의 미러 https://github.com/arsenetar/send2trash.git synced 2026-03-27 08:01:38 +00:00

Update plat_other.py

The trash info file needs to exist before the file is moved into the trash folder. 
This is to conform to the events based detection of trashed files in gnome and other file managers.
This commit is contained in:
Magnus Møller Jørgensen
2020-07-23 03:57:15 +02:00
committed by GitHub
부모 49bc438546
커밋 20bbab0b4c

파일 보기

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