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.
这个提交包含在:
Magnus Møller Jørgensen 2020-07-23 03:57:15 +02:00 提交者 GitHub
父节点 49bc438546
当前提交 20bbab0b4c
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -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):