SUMMARY I'm copying about 1TB of files onto about 1TB HDD. Over half of them were copied before. If I try to copy them through Dolphin now, it says there's not enough space, because it doesn't subtract the files already copied from space required. STEPS TO REPRODUCE 1. Take any medium and a folder with files that would pack it full. 2. Copy half of files, stop the operation. 3. Copy whole folder again to the same location. OBSERVED RESULT Copying would fail with 'not enough space' error. EXPECTED RESULT Copying success with me being asked to overwrite or skip already copied files. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Kubuntu 19.10 (64 bit) (available in About System) KDE Plasma Version: 5.16.5 KDE Frameworks Version: 5.62.0 Qt Version: 5.12.4 ADDITIONAL INFORMATION
It not subtracting size of already copied files is just my guess, because it fails before even asking if I want to overwrite them.
Without an answer to the overwrite confirmation dialog, it could take the maximum size of source and destination file, and subtract the size of the destination file.
The code sees a "source", in this case one big folder, it computes the free space at the "destination"; if the free space at the destination is less than the size of "source" it stops. AFAICT, currently the code can't tell that half of those files have already been copied before.
The solution is for the "not enough space" error to be turned into a dialog that gives the choice to the user, no? The usual messagebox with "Continue / Cancel" buttons. This would also cover the use case of "yeah I know, I'll make some room at destination while the very slow copy happens".