Bug 459327

Summary: Dolphin interrupts copying or moving files when a single file / folder could not be created and waits for user action
Product: [Frameworks and Libraries] frameworks-kio Reporter: postix <postix>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: normal CC: alister.hood, kdelibs-bugs, kfm-devel, nate
Priority: NOR Keywords: usability
Version: 5.112.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description postix 2022-09-18 12:56:22 UTC
SUMMARY

When copying files to e.g. a USB drive, Dolphin may stop at some point saying "Could not make folder <path>" and discards the complete copy job.

At this point there are already some files copied over and many empty folders created.
It'd convenient therefore if Dolphin did not stop the whole process, but continued with the other files.

During the copying or afterwards Dolphin could report and ask what to do with the files, which could not be copied.

It'd be very helpful if Dolphin printed a list of problematic files, which the user can then use to copy some files manually afterwards or to investigate potential issues.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220915
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5
Kernel Version: 5.19.8-1-default (64-bit)
Graphics Platform: Wayland
Comment 1 postix 2022-09-18 13:05:20 UTC
For instance, try to copy a bunch of files to an NTFS drive, where a single file contains some illegal characters, like "IsThisTheSong?.mp3" or "11:11.mp3".
Comment 2 postix 2022-09-18 13:25:45 UTC
I see, Dolphin asks at some point whether to "skip" the file or not, but it takes minutes until it shows it, which makes it look like it's totally broken.
Comment 3 postix 2022-09-18 13:31:42 UTC
And even after saying "skip all", it still hangs. It is no fun, especially, when you are in a hurry.
Comment 4 postix 2022-09-18 14:44:08 UTC
When I copied files from BTRFS to Android MTP, one file contained a "?" in its filename. The copy process started to stuck.
I cancelled it and tried to copy it again, but it the progress slider just slides back and forth and journalctl reports

```
Sep 18 16:41:08 org.kde.kmtpd5[3157]: Error 2: PTP Layer error 02ff: LIBMTP_Send_File_From_File_Descriptor(): Could not send object.
Sep 18 16:41:08 org.kde.kmtpd5[3157]: Error 2: Error 02ff: PTP I/O Error
```
Comment 5 postix 2023-12-14 14:39:33 UTC
I'd like to push this one. I just copied 500 GB from A to B, left the computer and came back 2 hours later, when it should have finished.
However, it did stopped copying in the middle after roughly 250 GB because a single file could not be written. This is super annoying!