mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-01-22 14:41:40 +00:00
Merge branch 'master' into master
This commit is contained in:
@@ -111,9 +111,8 @@ def trash_move(src, dst, topdir=None):
|
||||
check_create(filespath)
|
||||
check_create(infopath)
|
||||
|
||||
f = open(op.join(infopath, destname + INFO_SUFFIX), "w")
|
||||
f.write(info_for(src, topdir))
|
||||
f.close()
|
||||
with open(op.join(infopath, destname + INFO_SUFFIX), "w") as f:
|
||||
f.write(info_for(src, topdir))
|
||||
os.rename(src, op.join(filespath, destname))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user