1.8.7b, cannot rename folder due to file lock
Posted: Mon Feb 17, 2025 11:32 pm
I am not sure if this is a bug or a feature as many other programs have the same issue. Anyway too often there comes a situation that you are unable to rename a folder because a file inside of it is open in xnview.
Way to reproduce (win11)
- double click a file in DRIVELETTER:\...\FOLDERA\FOLDERB to open it in XNView Viewer mode
- move one level up in File Explorer to FOLDERA
- press F2 and try to rename FOLDERB to FOLDERC
Expected behaviour:
- folder is renamed. XNView either keeps the pic open and in memory but will give error if you press arrow button or do any operations.
Observer behaviour:
- folder in use dialogue: the action can't be completed because the folder or a file in it is open in another program
FYI sometimes the rename succeeds but most of the time it does not. The folder I tried in is inside Onedrive pretty recent version.
Way to reproduce (win11)
- double click a file in DRIVELETTER:\...\FOLDERA\FOLDERB to open it in XNView Viewer mode
- move one level up in File Explorer to FOLDERA
- press F2 and try to rename FOLDERB to FOLDERC
Expected behaviour:
- folder is renamed. XNView either keeps the pic open and in memory but will give error if you press arrow button or do any operations.
Observer behaviour:
- folder in use dialogue: the action can't be completed because the folder or a file in it is open in another program
FYI sometimes the rename succeeds but most of the time it does not. The folder I tried in is inside Onedrive pretty recent version.