Multi Commander Support Forum

Multi Commander => Feature Requests and Suggestions => Topic started by: Matthias515566 on March 23, 2018, 09:50:10

Title: Multicommander protecting folders, this folders can't be deleted or renamed
Post by: Matthias515566 on March 23, 2018, 09:50:10
Sometimes Multicommander protecting folders also after all activities ended. Without any reason. This folders cant be renamed or deleted and cant used by other Software until Multicommander terminqated. Sometimes also when the folder already deleted. I deleted accidentally a folder with gpx and osm files and recovery with Acronis True Image doesn't work until MC terminated.
Title: Re: Multicommander protecting folders, this folders can't be deleted or renamed
Post by: Mathias (Author) on March 23, 2018, 10:38:09
It is not MC that are protecting the folder.. it is Windows.. MC gets an error from windows that something else is using the file or folder.
But if you are doing something in a folder with MC the folder might not be delete from outside MC.
If there are lots of files in the folder MC will get icons from the files in that folder and it can take a while.
Also AV kan hook in, into MC and start scanning files inside a folder that MC looks at.
Title: Re: Multicommander protecting folders, this folders can't be deleted or renamed
Post by: Jungle on March 24, 2018, 15:42:38
It can be easily reproduced.

1. Create two folders: c:\temp\1 and c:\temp\1\2.
2. In one panel enter c:\temp, and in other panel enter c:\temp\1\2.
3. Now try to rename folder c:\temp\1.
Result: rename failed.


P.S. But such behaviour is common for Windows itself and most file managers.
Title: Re: Multicommander protecting folders, this folders can't be deleted or renamed
Post by: Mathias (Author) on March 24, 2018, 17:11:15
Yes that is because filesystem watches that are active. Normally they allow rename of a folder but since there is a watch is a sub sub folder it fails.
normally you can rename and delete a folder with a active "watch" on.. the issue comes when you have active watches in subfolders

watching folder C:\temp and c:\temp\1  and renaming "1" from the panel watching c:\temp , that work, the watch for C:\temp\1 will automatically be dropped.
but if you move into a subfolder.  c:\temp\1\2 then Windows get confused or something and will not allow the rename since there are reference to that folder that it can not drop.

From the command line field in MC you can force a unwatch of a folder.. ":unwatchfolder <path>"