Bug 428469

Summary: A new option for file transfers: "overwrite if source filesize is larger" in the "File Already Exists" dialog
Product: [Frameworks and Libraries] frameworks-kio Reporter: myndstream
Component: Overwrite dialogAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: kdelibs-bugs, kfm-devel, nate
Priority: NOR    
Version: 5.75.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description myndstream 2020-10-30 10:57:36 UTC
SUMMARY
A feature for copying and moving file with the Dolphin filemanager that allows to automatically overwrite destination files if the filesize of the source file/s is/are larger would be very useful and convenient.

There could be a new button in the "File Already Exists" dialog "Overwrite if source file is larger", for which the "Apply to All" could be checked if multiple files are copied or moved. Maybe this button should only be displayed if multiple files are being copied or moved. Maybe the button could be hidden by default and only display when one clicks a small uncollapse arrow for more options than "Rename", "Skip", "Overwrite" and "Cancel".

__

One usecase I had was copying files to an Android device which due to connection problems sometimes only copied partial files. This resulted in e.g. audio files which only played for a certain time and then, at the file's end, just skipped to the next track. Especially if file-transfer is relatively slow or the connection unreliable or the amount of data being copied/moved large it would be very convenient to have a feature to let the file-transfer automatically replace all destination files with the larger, and in this case complete, files instead of overwriting all.


STEPS TO REPRODUCE
1. Copy multiple files including one or multiple files with the same filename as the destination files
2. Paste these files to the destination to make the "File Already Exists" dialog show up
3. Overwrite all destination files with files of larger filesizes but skip every other file

OBSERVED RESULT
No option for this to be done automatically

EXPECTED RESULT
An option for this to be done automatically

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: latest KDE neon 5.20

ADDITIONAL INFORMATION
Later this functionality could be improved further so that it may be possible to automatically overwrite smaller destination files if the source files have the same filename but also if e.g. some metainformation is the same (such as a hash).