temporary files not erased

Bug reports will be moved here when the described bug has been fixed

Moderators: sheep, Hacker, Stefan2, white

Post Reply
flurk
Junior Member
Junior Member
Posts: 7
Joined: 2013-10-25, 21:54 UTC

temporary files not erased

Post by *flurk »

I have some RAR files containing video files (to keep them together for distribution). To get a quick look at their contents, I simply open the RAR file (double click), select a video file and use quick view to check that file with the new internal viewer in the other panel.

Total Commander then creates a copy of each viewed file in a temporary directory temp\_tc\$q.

However, this directory is not erased when Total Commander exits, and after some time it contains gigabytes of copied video files.

Is there an option to avoid this, or to automatically delete the \_tc\$q directory ?
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3651
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: temporary files not erased

Post by *sqa_wizard »

By default the viewed files and the \_tc\$q directory are deleted immediately after you return from quick view to normal view.
Added: to be exactly: The quick viewed temporary file is deleted immediately after you switch to the next file.
There may be circumstances which locks the temporary files for a while and inhibits the direct deletion of the file and further the directory itself.
This could be a antivirus scanner or a plugin which had handled the quickview of the file.

A forced deletion of the directory would delete temporary files of other instances of TC too.
Furthermore the temporary files could be still in use by an external viewer (e.g. VLC).
#5767 Personal license
flurk
Junior Member
Junior Member
Posts: 7
Joined: 2013-10-25, 21:54 UTC

Re: temporary files not erased

Post by *flurk »

When I set the "view method by file type" to using only mmedia.wlx64, the temporary directory gets cleaned up as soon as you switch from quick view to normal view, and Total Commander works indeed as you describe.

But when I change the "view method by file type" to "4i" (new internal viewer only) in stead of mmedia.wlx, I quickly get a few dozen big MP4 files in the \_tc\$q directory), and they remain there after closing Total Commander. If you try to "quick view" one of those files afterwards (still from within the RAR archive as I mentioned above), the viewing is of course interrupted by the "overwrite with file" dialog in the temporary directory.
User avatar
petermad
Power Member
Power Member
Posts: 10397
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: temporary files not erased

Post by *petermad »

2flurk
But when I change the "view method by file type" to "4i" (new internal viewer only) in stead of mmedia.wlx, I quickly get a few dozen big MP4 files in the \_tc\$q directory), and they remain there after closing Total Commander.
I can confirm this but only for Quick View and Quick View in Separate Window, not in a normal Lister window.

It does not happen with mmedia plugin as default player.

I also noticed this: viewtopic.php?f=35&t=74417
License #524 (1994)
Danish Total Commander Translator
TC 10.00 b8 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (20H2) 64bit, 'Everything' 1.4.1.1005
TC 3.21b2 on Android 6 & 11
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 40901
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: temporary files not erased

Post by *ghisler(Author) »

It sounds like the video file is still open when TC tries to delete it, so Windows cannot delete it. I will probably have to wait longer after you close the player before I delete the file.
Author of Total Commander
http://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 10397
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: temporary files not erased

Post by *petermad »

history.txt wrote:19.04.21 Fixed: Quick view (inside the main window or separate) didn't delete temporarily unpacked videos because they were still open in the player (32/64)
Confirmed fixed in TC 10 b7 :-)
License #524 (1994)
Danish Total Commander Translator
TC 10.00 b8 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (20H2) 64bit, 'Everything' 1.4.1.1005
TC 3.21b2 on Android 6 & 11
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply