The action can’t be completed: (Win7 Home Premium)

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15628
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

The action can’t be completed: (Win7 Home Premium)

Post by ChrisGreaves »

I found this strange.

Offline, I have opened one or more web pages in my browser from a folder on my laptop.
The Firefox browser remains open with the pages open.
If I select the contents of the folder (Ctrl-A in the right pane) and tap the delete key, the files are deleted.
If I select the folder (left pane) and tap the delete key, I obtain the complaint box “This action can’t be completed because the folder or a file in it is open in another program”.

I can’t see logically why the delete-file action can be completed but the delete-folder cannot. Doubtless there is a practical reason for it – even if that reason is that the two programmers were not talking to each other – but LOGICALLY I can’t see why it should be not possible in the second instance when it IS possible in the first.

I note that If I delete the files (Ctrl-A, Delete in right pane) the files are gone, but I still can not delete the folder. The hurdle must be a flag that exists between the folder name and the folder contents, rather than between any aspect of the folder and the offending application.

And yes, once I close Firefox, the folder can be deleted.
You do not have the required permissions to view the files attached to this post.
There's nothing heavier than an empty water bottle

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: The action can’t be completed: (Win7 Home Premium)

Post by Rudi »

I would assume that FF has a lock on (or a reference to) the folder itself in some running process. If there is a reference to (or lock on) the folder, it would prevent the folder from being deleted, but the files would still be available for processing. (I do not confirm, nor deny the validity of this answer)!
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.