1
0
Derivar 0

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.
Este cometimento está contido em:
Magnus Møller Jørgensen 2020-07-23 03:57:15 +02:00 cometido por GitHub
ascendente 49bc438546
cometimento 20bbab0b4c
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros modificados com 2 adições e 2 eliminações

Ver ficheiro

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