Bug 511627 - Some file dates are not set when copying many files from MTP
Summary: Some file dates are not set when copying many files from MTP
Status: RESOLVED DUPLICATE of bug 458562
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-04 15:14 UTC by konton
Modified: 2025-12-28 14:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description konton 2025-11-04 15:14:00 UTC
When copying larges numbers of files from MTP (e.g. an Android phone, for me this is typically hundreds of photos) some file modification times are randomly not set to their original values. As files are being copied their mtimes in the destination folder are initially set to the current time, but then adjusted afterwards to their original values. However, this adjustment does not happen for some fraction of them (maybe 5%), and the modification times of those then remain as "just now" in dolphin (or maybe e.g. "3 minutes ago" if the copy operation took a long time.)

The workaround is to sort the copied files by time, delete all those that got the wrong file date, and repeat the copyinguntil all files were copied correctly.

STEPS TO REPRODUCE
1. Plug in an Android device with hundreds of photos.
2. Navigate to its photo folder in Dolphin (mtp:/ location)
3. Open a local folder in another dolphin tab.
4. Select and copy a large number of files from the phone in the first tab. 
5. Paste them into the other tab.

OBSERVED RESULT
A fraction of the copied files get mtime = the time of the copy operation.

EXPECTED RESULT
All copied files get their original dates.

SOFTWARE/OS VERSIONS
Plasma Version: 6.4.5
Dolphin Version: 25.08.1 
KDE Frameworks Version: 6.17.0 
Qt Version: 6.9.2

ADDITIONAL INFORMATION
Has been present in several previous versions of Dolphin.
Comment 1 aristsakas 2025-12-28 14:02:54 UTC

*** This bug has been marked as a duplicate of bug 458562 ***