Author Topic: Multicommander protecting folders, this folders can't be deleted or renamed  (Read 13437 times)

Matthias515566

  • Power Member
  • ****
  • Posts: 323
    • View Profile
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.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
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.

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 537
  • Old Skull
    • View Profile
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.
« Last Edit: March 24, 2018, 17:05:24 by Jungle »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
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>"
« Last Edit: March 24, 2018, 17:13:08 by Mathias (Author) »