9650 : permission denied : change mtime to origin instead of destination.
This commit is contained in:
parent
72d54a319f
commit
75a4a380a9
@ -550,7 +550,7 @@ def copy_thumbnail(report, handle, photo, region=None):
|
|||||||
photo.get_mime_type(),
|
photo.get_mime_type(),
|
||||||
region)
|
region)
|
||||||
mtime = os.stat(full_path).st_mtime
|
mtime = os.stat(full_path).st_mtime
|
||||||
os.utime(from_path, (mtime, mtime))
|
os.utime(to_path, (mtime, mtime))
|
||||||
if not os.path.isfile(from_path):
|
if not os.path.isfile(from_path):
|
||||||
from_path = CSS["Document"]["filename"]
|
from_path = CSS["Document"]["filename"]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user