Flatten Folder quits silently if a file is locked.

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

: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: We 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.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Malarki
Posts: 208
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

Flatten Folder quits silently if a file is locked.

Post by Malarki »

May not be a bug but is puzzling when it happens and I don't see that it's been discussed.

In a "::fresh" instance of XY v27.00.0201, under Win 10 x64, with Flatten Folder enabled. If a file in one of the subfolders is locked eg by VLC media player, then Flatten Folder (whether issued in the Tree or the List pane) will just do nothing - which is understandable - but without showing any reason why.

Ideally XY would in this case pop a dialog saying that the folder can't be flattened because a file is in use. However, I kinda get that "file locked" is a Windows function and that may not communicate well. So just noting this here.

(Same in XYTB.)

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

Re: Flatten Folder quits silently if a file is locked.

Post by admin »

It does not check beforehand if a folder can be flattened. Currently, the algorithm works through the moves until a move fails, at which point it silently aborts any further action. This is certainly not ideal. The best I can offer for now is that the algorithm continues and moves all files it can, and finally says "some files could not be moved".

UPDATE: I did that.

Malarki
Posts: 208
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

Re: Flatten Folder quits silently if a file is locked.

Post by Malarki »

Thanks! IMHO that's the best choice and is consistent with other "Move" commands: they do what they can until they hit a snag; then stop and report it.

I love having Flatten Folder and have used it countless times.

Post Reply