FarManager
FarManager copied to clipboard
Removal of illegal pathes
Far Manager version
3.0.6161.0
OS version
10.0.19045.3803
Other software
cmd.exe
Steps to reproduce
Crashed when an attempt to remove an illegal path ( "\Temp\36237218...." ) is made. A virus made some copies of itself and put them into folders called "...." within Temp, Far Manager is able to access the copies inside "...." folder but unable to remove - since Windows mis-interpret it as parent directories.
Steps to reproduce:
- Make a folder with illegal name "....". Can be done with "mkdir \?\C:\some\place\for\illegal_folder...."
- Open Far Manager and locate to the illegal folder
- Right click and delete the parent folder of "...."
- Program become iresponsive for a moment and soon proceed to crash.
Expected behavior
Delete the illegal folder successfully (Also be done by adding "\?" in front of the directory)
Actual behavior
Unsuccess removal caused by the program keep directing into "...." (If "...." folder is accessed though file explorer it will end up with a loop like "................")
Just use Shift+Del to avoid problem with Recycle Bin.
@Danielma0203, "right click and delete" is not a recommended way to deal with bad paths: it delegates the work to a plugin that delegates it to the shell, which could behave unpredictably. As mentioned above, Shift+Del should delete such paths without issues.
If you can reproduce the crash (I can't), please share the crash log, we will see if it's fixable.