Deal with duplicate files last when combining folders [$10]

Bug #1401356 reported by Gabriel_P
48
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Files
Confirmed
Low
Unassigned

Bug Description

See this post: https://plus.google.com/u/0/+GabrielPerren/posts/VbXhrpFxdeh

When merging/combining two folders or when several files are pasted into a folder, if a duplicate file is found mid-way through the process, it stops until the user intervenes to decide which action to take.

The file manager should be smart enough to skip the conflicting file(s), copy/move all files that can be copied/moved and leave the file(s) with issues for last.

This way if lots of files are being copied/moved the process can finish much faster since the conflicting file(s) will be "bundled" and can be managed last instead of stopping the entire process.

Tags: bounty
Changed in pantheon-files:
status: New → Confirmed
importance: Undecided → Low
milestone: none → 0.2
Revision history for this message
Arvigeus (arvigeus) wrote :

Wouldn't be better to deal first? On file copy/move first check for duplicates, then proceed. If I have 16GB collection, and the existing (older) file is 8GB, when I return from what else I'm doing I have to wait a fair amount of time to replace that file. From user convenience would be better to deal with potentially long task at the beginning, from performance point of view - at the end (no need to do checking ahead of time)

Revision history for this message
quassy (quassy) wrote :

Arvigeus: That would mean files had to check every file in advance before even starting copying, thus increasing copy time for all cases (even if there are no conflicts)

Revision history for this message
Gabriel_P (gabp) wrote :
Revision history for this message
Mike Schmidt (michael-schmidt82) wrote :

It seems like it would be mega-smart to do something like this:

- If the filename to copy already exists, create a "dummy" file instead.
- If there is atleast 1 dummy files on the drive, but the drive is nearly full (say 5% left), stop creating dummy files, *unless* the rest of the files *can still fit* on the drive.

For every dummy file:
- If the user wants to keep the original file, then delete the dummy file.
- If the user wants to overwrite the original file, delete the original, then rename the dummy file to correct filename.

The dialog for "keep" or "overwrite" is presented at the end, in this way all data has been copied, however, when the user decides what he/she would like to do, it requires much quicker operations: delete and/or rename, to complete the task.

Revision history for this message
Mike Schmidt (michael-schmidt82) wrote :

Also, if dummy files are stop being created due to space limitations, then just copy what doesn't conflict.

When dummy files/original files are being removed, start creating the dummy files that should have been created while conflicting files are resolved. Ask the user to resolve those conflicts last.

summary: - Deal with duplicate files last when combining folders
+ Deal with duplicate files last when combining folders [$10]
tags: added: bounty
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.