Page 1 of 1

Custom Copy lops off first character of folder name

Posted: 04 Nov 2011 12:41
by nas8e9
I've got what may be two bugs.

STR:
1. select a folder with several subfolders (in my case only one level deep);
2. search for files (in my case the pattern was "w*");
3. press Ctrl+F7 to do a copy through Copy/Move/Backup To (in my case to C:\Tmp\) of only the files in the search result.

The end result has two things wrong:
1. the files end up in the destination in their original folders, but with the first letter of the folder name removed (e.g. 4X instead of the original W4x);
2. the Action Log shows the files to have been copied without the folder names, e.g. C:\Tmp\filename.ext, instead of the actual C:\Tmp\4x\filename.ext. As a result, Undo fails with the error message "Undo failed! Did not find C:\Tmp\filename.ext".

XYplorer 10.50.0009 / Windows 7 x64 SP1.

Re: Custom Copy lops off first character of folder name

Posted: 04 Nov 2011 16:43
by admin
nas8e9 wrote:The end result has two things wrong:
1. the files end up in the destination in their original folders, but with the first letter of the folder name removed (e.g. 4X instead of the original W4x);
2. the Action Log shows the files to have been copied without the folder names, e.g. C:\Tmp\filename.ext, instead of the actual C:\Tmp\4x\filename.ext. As a result, Undo fails with the error message "Undo failed! Did not find C:\Tmp\filename.ext".
:shock: Frankly, I'm surprised that the files end up in the destination in their original folders (like an implicit Rich Copy), I'm not aware that this is a feature (but I confirm that it happens, although I could not reproduce the the loss of the first letter). I think this is a bug! In which case the Action Log would be alright, but the copying is wrong.

Do you agree?

Re: Custom Copy lops off first character of folder name

Posted: 04 Nov 2011 17:23
by nas8e9
admin wrote: :shock: Frankly, I'm surprised that the files end up in the destination in their original folders (like an implicit Rich Copy), I'm not aware that this is a feature (but I confirm that it happens, although I could not reproduce the the loss of the first letter). I think this is a bug! In which case the Action Log would be alright, but the copying is wrong.

Do you agree?
In that case the Action Log logs intent instead of the actual operation?

As for what Custom Copy should do, I'd expect the files in the destination to have been flattened, i.e. without them being in their respective folder. WE does it like this, as does XYplorer's regular/shell copy.

Finally, the removal of the first character of the destination folder's name, is reproducible. At first I thought the fact that the letter of the search pattern, being the same as the letter being lopped of, was significant, but a different letter gets removed as well.

Re: Custom Copy lops off first character of folder name

Posted: 04 Nov 2011 18:15
by admin
Fix comes. Flattened. :)

Re: Custom Copy lops off first character of folder name

Posted: 04 Nov 2011 20:55
by nas8e9
Works for me now: files from different folders are copied flattened, as expected.