Browse Source

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.
pull/47/head
Magnus Møller Jørgensen 9 months ago
committed by GitHub
parent
commit
20bbab0b4c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      send2trash/plat_other.py

+ 2
- 2
send2trash/plat_other.py View File

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


Loading…
Cancel
Save