temp or cash archive file are not deleted

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Michael REMY
Senior Member
Senior Member
Posts: 202
Joined: 2010-12-12, 10:05 UTC
Location: Amiens

temp or cash archive file are not deleted

Post by *Michael REMY »

hi !

i use tc 7.57a and i just discover that there are many cache files or temps files which remains in my temp folder under the sub folder _tc (which is created by total commander).

here how i proceed :
-i double click on a archive file (a rar file by exemple, and i browse into)
-then i close total commander, it alerts me there will be some file which not be delete by active program (i can find which one and it is not winrar cause i use rar internal to unpack rar archive)
-so i close
- then i reopen tc
- then i re-close it
- and now , the /temp/_tc is not empty at all


so, i can guess there is 2 little bugs :
- why tc didn't delete _tc folder at the openning of a new instance
- why tc didn't manage to consider its own unpack process like a tc process, and clean all its caches/temps

have a good day.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3897
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

As you already stated above:
it alerts me there will be some file which not be delete by active program
You pressed OK button, which means that it is OK for you.

If you don't want the files remain in temp/_tc folder, just don't close TC at this time!
Step back with ".." entry to leave the archive instead. This will delete the files correctly.

The reason for this behavior:
There may multiple instances of TC running.
Each of them will put its files into the same temp/_tc folder.
Closing only 1 instance cannot just delete all files.
Some files may belong to another instance.
#5767 Personal license
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Michael REMY, each TC copy keeps temporary files until it uses them (until program is running, until editor is not closed, until you leave nested archive etc). When you restart TC, it doesn't know if you still need cached files (or if theese files are created by TC at all), so keeps them untouched.
Michael REMY
Senior Member
Senior Member
Posts: 202
Joined: 2010-12-12, 10:05 UTC
Location: Amiens

Post by *Michael REMY »

but, i only allow one instance

and at the first boot of the system, and the first instance of TC, it should clean the /temp/_tc directory before use it.

i discover old file long for many months. Even, after a update release, the temp/_tc wasn't clean.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7026
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Michael REMY wrote:but, i only allow one instance

and at the first boot of the system, and the first instance of TC, it should clean the /temp/_tc directory before use it.

i discover old file long for many months. Even, after a update release, the temp/_tc wasn't clean.
If you don't like that make a short batch file to clean up the whole temp tree
and schedule it for system start.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Horst.Epp wrote:If you don't like that make a short batch file to clean up the whole temp tree
and schedule it for system start.
+1

TC doesn't know if it is the first instance launched after system restart and even in such case it can't be sure that user doesn't need that files. It is much easier to clean that folder manually when needed.
Bartusg
Junior Member
Junior Member
Posts: 34
Joined: 2010-12-11, 22:17 UTC

Post by *Bartusg »

It looks to me that TC creates these temp files without many/most users are aware of it. I can understand that another program needs such file when closing TC, but in general TC should have some maintenance options, eg clean up after x days or weeks without use.
Post Reply