Page 1 of 1

Flatten Folder quits silently if a file is locked.

Posted: 14 Apr 2025 01:46
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.)

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

Posted: 14 Apr 2025 10:42
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.

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

Posted: 14 Apr 2025 16:40
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.