FS#6700 - Recursive pasting

Attached to Project: Rockbox
Opened by tim (TonightsLastSong) - Monday, 26 February 2007, 20:46 GMT
Task Type Bugs
Category User Interface
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


*hopes that "User Interface" is the appropriate category*

i tried searching this problem in the tracker, but i'm not seeing a post about this:

when the user copies a folder, and then enters that very folder and pastes (ie, pasting into the folder that you copied), rockbox does a whole lot of recursive pasting because while in the process of pasting, it sees the files that have just recently been pasting, and then thinks it must copy those as well. as a result, you get about 20 nested folders (or more, depending on the folder size) of the exact same content. rockbox handles the operation fine, and it'll say "Paste failed" once it runs out of memory to continue pasting in a loop. despite the "fail" message, the first 20 to 30 paste operations are still around (since rockbox didn't fail on those).

ultimately, my point is this:

when rockbox executes its "copy" command on a folder, is it possible to make it keep track of the other files and folders within so that if it pastes into itself, it won't spin your harddrive like mad and see how many times it can paste duplicates of the folder inside of itself?

This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Tuesday, 27 February 2007, 10:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  added a check so you cant do this anymore.