Author Topic: Prevent folder from locking  (Read 13924 times)

espkk

  • Junior Member
  • **
  • Posts: 40
    • View Profile
Prevent folder from locking
« on: January 12, 2018, 16:56:36 »
Hi! How to prevent a folder from access(move/delete) locking while opened in MC?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4423
    • View Profile
    • Multi Commander
Re: Prevent folder from locking
« Reply #1 on: January 13, 2018, 19:31:37 »
MC don't lock folder directly.  There is really no way of doing that, the file system is doing that automatically
But when you copy a file, the file is then in use and the folder is than kind of locked. That is how the file system works.
You can delete a folder if files inside it are in use



AlanJB

  • VIP Member
  • *****
  • Posts: 436
  • VERY old Programmer
    • View Profile
Re: Prevent folder from locking
« Reply #2 on: January 14, 2018, 01:03:53 »
Mathias,
Quote
You can delete a folder if files inside it are in use
Should that be "You canNOT delete a folder if files inside it are in use"?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4423
    • View Profile
    • Multi Commander
Re: Prevent folder from locking
« Reply #3 on: January 14, 2018, 11:41:58 »
hehe Whopss. Yes you are correct.. it should be "Can NOT" 

espkk

  • Junior Member
  • **
  • Posts: 40
    • View Profile
Re: Prevent folder from locking
« Reply #4 on: January 16, 2018, 19:13:43 »
Thanks for the answer, but I didn't mean copying or any other filesystem operations. I mean when a folder's subfolder is opened in MC, it prevents from deleting that parent folder. Windows Explorer allows you to do that: if an opened folder or it's subfolder was deleted, Explorer will just 'cd' to first existing parent folder in the path, no access error occurs.

UPD:
Yeah, that's probably also kind of "files in use", but probably there is a simple workaround?
« Last Edit: January 16, 2018, 19:17:48 by espkk »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4423
    • View Profile
    • Multi Commander
Re: Prevent folder from locking
« Reply #5 on: January 16, 2018, 19:34:42 »
MC should not lock folders., even if you are located inside it. 
But if you show thumbnails and such other background processes might process files inside the folder, and prevent it from being deleted/moved.
if there are a lot of file updates inside the folder MC might to a lot of refresh/rescan, that then the folders are in use while the rescan is happening