This commit is contained in:
ramson 2020-05-27 17:04:57 +01:00 committed by GitHub
commit 2312dd2ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import os
import os.path as op
from datetime import datetime
import stat
import shutil
try:
from urllib.parse import quote
except ImportError:
@ -100,7 +101,7 @@ def trash_move(src, dst, topdir=None):
check_create(filespath)
check_create(infopath)
os.rename(src, op.join(filespath, destname))
shutil.move(src, op.join(filespath, destname))
f = open(op.join(infopath, destname + INFO_SUFFIX), 'w')
f.write(info_for(src, topdir))
f.close()