Custom Copy lops off first character of folder name

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Custom Copy lops off first character of folder name

Post 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.

admin
Site Admin
Posts: 67332
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Copy lops off first character of folder name

Post 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?

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Custom Copy lops off first character of folder name

Post 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.

admin
Site Admin
Posts: 67332
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Copy lops off first character of folder name

Post by admin »

Fix comes. Flattened. :)

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Custom Copy lops off first character of folder name

Post by nas8e9 »

Works for me now: files from different folders are copied flattened, as expected.

Post Reply