* src/ReadXML.py (import_data), src/WriteXML.py (export_data),
src/RelImage.py (import_media_object), src/gramps_main.py (open_example), src/plugins/Check.py (cleanup_missing_photos), src/plugins/WebPage.py (write_gallery): Change shutil.copy() calls to first call shutil.copyfile() and then try setting up bits. svn: r1652
This commit is contained in:
@ -142,7 +142,11 @@ class CheckIntegrity:
|
||||
def fs_ok_clicked(obj):
|
||||
name = fs_top.get_filename()
|
||||
if os.path.isfile(name):
|
||||
shutil.copy2(name,photo_name)
|
||||
shutil.copyfile(name,photo_name)
|
||||
try:
|
||||
shutil.copystat(name,photo_name)
|
||||
except:
|
||||
pass
|
||||
self.replaced_photo.append(ObjectMap[ObjectId])
|
||||
else:
|
||||
self.bad_photo.append(ObjectMap[ObjectId])
|
||||
|
Reference in New Issue
Block a user