[Solved] Can't delete a file if a lister plugin can handle it

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
wp-alex
Junior Member
Junior Member
Posts: 9
Joined: 2019-01-29, 07:07 UTC

[Solved] Can't delete a file if a lister plugin can handle it

Post by *wp-alex »

Solved >>> viewtopic.php?p=351212#p351212

------------------------------------------------------------------------------------------------------------------

I'm not sure is it a plugin bug or TC itself, but will post it here also.

Initially the issue was found by me when using the Office 2007 plugin and posted in the plugin thread: viewtopic.php?p=351170#p351170

Plugin open file handles in background and prevent them from deleting.

Steps to reproduce:
0. Install the Office 2007 plugin.
1. Create a valid XLSX file C:\1\1.xlsx
2. Create a valid XLSX file C:\1.xlsx
3. Try to overwrite C:\1\1.xlsx with C:\1.xlsx.

Expected result:
File is overwritten

Actual result:
Can not overwrite files even with elevated privileges. If open ProcExp and check the TC process for the list of opened file handles - will see opened handles for both xlsx files. So opened file handles prevent files from deletion.

Same behaviour in 32 and 64 bits.

If I close those handles from the ProcExp - TC will open them again even if Copy dialog is not called.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Can't delete a file if a lister plugin can handle it

Post by *MVV »

Lister itself and TC don't lock files. A file may be locked by a plugin or an external app, and there is nothing that TC can do.
wp-alex
Junior Member
Junior Member
Posts: 9
Joined: 2019-01-29, 07:07 UTC

Re: Can't delete a file if a lister plugin can handle it

Post by *wp-alex »

Yes, we've found the plugin issue with the author. This topic can be closed.


Solved >> viewtopic.php?p=351212#p351212


 
Post Reply