https://bugs.kde.org/show_bug.cgi?id=498798
Bug ID: 498798
Summary: Onedrive
Classification: Applications
Product: digikam
Version: unspecified
Platform: Other
OS: Other
Status: REPORTED
Severity: normal
Priority: NOR
Component: Metadata-ExifTool
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
When using Digikam on Windows (just tried the weekly latest snapshot as well),
with the images directory stored on OneDrive (the onedrive folder), when doing
a metadata write-back to the file, the file is OK. It is then uploaded to
OneDrive. OK.
*BUT*
Then after about 1 minute, OneDrive re-downloads the file from the cloud --
thus overwriting the changes made, and restoring the metadata. OR: OneDrive
downloads the file again, but this time with "-ComputerName" added to the file
name.
I have seen many reports about this on the web, so I am not the only one.
Example: (exactly the same issue):
https://www.reddit.com/r/onedrive/comments/1hteo4w/onedrive_duplicates_files_with_computer_name/
It has already been reported before - here for example:
https://www.mail-archive.com/[email protected]/msg806084.html
I understand this "nothing to do with digikam" -- Or even ExifTool.... or the
Perl Exiftool wrapper.
But I may suggest some addition to Digikam to try and circumvent this?
I have tried to solve this, by using many different settings for the metadata
writeback (settings in digikam advanced options".
No matter what I do, I keep getting the same result.
*I SUSPECT* that it is some issue with the Windows file system in coordination
with the OneDrive client.
I suspect that Onedrive detects a changed file (hash), but the file time stamp
is not (correctly?) set or updated -- so it thinks the online file is newer,
and downloads that again.
*SUGGESTION*
1. After each file write-back using the Exiftool backend, use a Windows "touch"
equivalent ... like: copy /b filename.ext +,,
See the answer here:
https://superuser.com/questions/10426/windows-equivalent-of-the-linux-command-touch
--> This way, the Windows file system and OneDrive (hopefully) see the 'hard
pushed' (by Windows itself) change date/time, and syncs correctly to OneDrive,
and keeps the correct file.
2. Check and possible change the Exiftool file write-back option: Does Digikam
use "-overwrite_original" or the "-overwrite_original_in_place" option to write
the files back? If so -- do I have the option to change those options?
Another question / suggestioon And can I see some Exiftool LOG of the commands
that Digikam sends to Exiftool, so that I can troubleshoot better?
Thank you very much.
--
You are receiving this mail because:
You are watching all bug changes.