Author Topic: The deletion of large directories does not work.  (Read 925 times)

Matthias515566

  • Power Member
  • ****
  • Posts: 348
    • View Profile
The deletion of large directories does not work.
« on: June 12, 2025, 19:59:49 »
The error message appears: "Folder is not empty! Cannot delete folder 'Foldername'."

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4690
    • View Profile
    • Multi Commander
Re: The deletion of large directories does not work.
« Reply #1 on: June 12, 2025, 22:59:32 »
Then there must still be some file or folder inside, and it can't delete it because it is not empty.
Probably some files or subfolder that it was not able to delete because of some reason. Normally you get an error dialog about that. Unless you told it to continue on error.. Anyway the FileOperation log should have printed out the error

Matthias515566

  • Power Member
  • ****
  • Posts: 348
    • View Profile
Re: The deletion of large directories does not work.
« Reply #2 on: June 13, 2025, 13:13:54 »
The files do not need to be locked in order to reproduce the error. All the affected folders so far I have been able to delete easily using Windows Explorer. For testing, you can use a copy of a Firefox profile folder that contains many files.

Here is the text from the log:
2025-06-13 13:02:23.390 Failed to delete folder (163) : C:\Users\%yourusername%\AppData\Roaming\Mozilla\Firefox\Profiles\ovxoz3y4.default-esr - Kopie\storage\archives\0\2025-06-03\default\https+++www.youtube.com^partitionKey=%28https%2Cxn--verschwrungstheorien-99b.info%29\idb
2025-06-13 13:02:23.390 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4690
    • View Profile
    • Multi Commander
Re: The deletion of large directories does not work.
« Reply #3 on: June 13, 2025, 13:16:42 »
I don't have FF.  I can't reproduce that.
 
There was no error before that, that it failed to delete some files in the folder ? Is the folder empty?
Is the folder a real folder ? or special virtual files that FF hook into to do special stuff with?
« Last Edit: June 13, 2025, 13:21:15 by Mathias (Author) »

GaryM

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: The deletion of large directories does not work.
« Reply #4 on: Yesterday at 08:59:09 »
Matthias515566,

I also have Firefox and have many "idb" folders deep within my profile storage archives, in paths similar to the one in your error log message. I've checked the properties for about half a dozen of them and they all show read-only attributes for the folders, and most or all of them contain additional read-only subfolders. You might need to clear that attribute from any folders you want to delete and they might be protected by some other running process.
« Last Edit: Yesterday at 09:15:54 by GaryM »

Matthias515566

  • Power Member
  • ****
  • Posts: 348
    • View Profile
Re: The deletion of large directories does not work.
« Reply #5 on: Yesterday at 10:02:28 »
I don't have FF.  I can't reproduce that.
 
There was no error before that, that it failed to delete some files in the folder ? Is the folder empty?
Is the folder a real folder ? or special virtual files that FF hook into to do special stuff with?
The problem also occurred with other folders that came from a smartphone backup using MPE. The error message may vary, but it never offers the option to delete the files or end processes that might be preventing it.
Matthias515566,

I also have Firefox and have many "idb" folders deep within my profile storage archives, in paths similar to the one in your error log message. I've checked the properties for about half a dozen of them and they all show read-only attributes for the folders, and most or all of them contain additional read-only subfolders. You might need to clear that attribute from any folders you want to delete and they might be protected by some other running process.
That's an interesting point, but when files are in use, there is the option to terminate the corresponding processes, which isn't offered here. Also, nothing changes when running MC as an administrator, and the Windows Explorer deletes the respective folders without any issue.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4690
    • View Profile
    • Multi Commander
Re: The deletion of large directories does not work.
« Reply #6 on: Today at 09:40:20 »
I find no issue deleting folders with readonly attribures. MC will try to remove the readonly/system attributes that normally prevents deletes when deleting.

So I can't replicate it