Bug 412664 - Incrementally create and delete folder structures when doing a recursive copy
Summary: Incrementally create and delete folder structures when doing a recursive copy
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.60.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-06 11:34 UTC by Gregor Mi
Modified: 2025-03-24 22:57 UTC (History)
4 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 Gregor Mi 2019-10-06 11:34:21 UTC
Recently, I guided an occasional Plasma user when she wanted to sort out which of here files were already copied to an external USB drive and which ones were newer or missing. The following is one of the findings for potential improvement.

We started a move operation of a folder structure from hard drive to USB drive. The process took a while. The following was cause for confusion:

1. On the destination, the folder structure was created first and then, one by one the folders were filled with the files.

2. On the source folder, a folder which was already empty, did not disappear at once. The whole folder structure remaines until the process is complete.

The problem was: we _interrupted_ the move operation (deliberately, because of some panic). Which left us going through all the mostly empty folders looking which files were already moved and which not.

SUGGESTION:

1. Create folders on the destination only then, when files will be copied into it.

2. Delete folder from the source as soon as all files are moved out.
Comment 1 Ahmad Samir 2019-11-19 13:03:54 UTC
IMHO, I'd never use "move" for such cases; rather copy, verify the copy worked, then delete the original files.
Comment 2 Nate Graham 2019-11-19 14:50:01 UTC
I think the point is that a user should be able to trust the system to perform the mode correctly such that those kinds of manual verification steps would not feel necessary.