Zip temp folder ignored

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: sheep, Hacker, Stefan2, white

Post Reply
VinceB
Junior Member
Junior Member
Posts: 4
Joined: 2016-11-25, 07:54 UTC

Zip temp folder ignored

Post by *VinceB » 2018-07-26, 07:56 UTC

Hi,
Lookup like the setting Zip packer > "Directory for temporary files" is ignored when placed on "other" (and choose anything else)
It always take the %TEMP% folder, even after a restart.

Could somone comfirme this ?

This append with version 9.12 and latest 9.20

User avatar
tuska
Power Member
Power Member
Posts: 1686
Joined: 2007-05-21, 12:17 UTC

Re: Zip temp folder ignored

Post by *tuska » 2018-07-26, 08:25 UTC

2VinceB
Could somone comfirme this ?
I can confirm that.
I traced this back to version 8.52a.

User avatar
petermad
Power Member
Power Member
Posts: 8873
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Zip temp folder ignored

Post by *petermad » 2018-07-26, 10:28 UTC

Help File wrote: Directory for temporary files
Determines the directory where the internal ZIP packer puts its temporary files (only necessary when packing to removable disks):
So for temporarily unpacking files for viewing, comparing or editing this setting is not used.
License #524 (1994)
Danish Total Commander Translator
TC 9.5b3 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

VinceB
Junior Member
Junior Member
Posts: 4
Joined: 2016-11-25, 07:54 UTC

Re: Zip temp folder ignored

Post by *VinceB » 2018-07-26, 10:38 UTC

petermad wrote:
2018-07-26, 10:28 UTC
Help File wrote: Directory for temporary files
Determines the directory where the internal ZIP packer puts its temporary files (only necessary when packing to removable disks):
So for temporarily unpacking files for viewing, comparing or editing this setting is not used.
Oh ... that's explain everything... Excuse me for not having take a look at the help manual.
Thanks for having pointing the reason ;)

Altough, the choice to apply the setting only when opening a file on a removable disk is awkward...
I know this is nos the goal of this thread, but is there a way to control the zip temp folder via the .ini file ?

User avatar
petermad
Power Member
Power Member
Posts: 8873
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Zip temp folder ignored

Post by *petermad » 2018-07-26, 10:48 UTC

You can start TC via a batch file, where you set the TEMP environment before starting TC, then TC will use that setting.
License #524 (1994)
Danish Total Commander Translator
TC 9.5b3 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
tuska
Power Member
Power Member
Posts: 1686
Joined: 2007-05-21, 12:17 UTC

Re: Zip temp folder ignored

Post by *tuska » 2018-07-26, 13:28 UTC

If there is an option "Directory for temporary files (internal ZIP): other:",
then, in my opinion, it should be possible to specify a directory there, e.g. %COMMANDER_PATH% [or H:\Data].

Because then I do not want to put a .ZIP file in %TEMP%,
e.g. when using a portable TC version on an USB stick on a third-party PC.

Such a setting I would see as analogous to Configuration > Options... > Thumbnails > Database Location.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38190
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Zip temp folder ignored

Post by *ghisler(Author) » 2018-07-27, 08:07 UTC

Indeed the temporary ZIP folder the user can set is only used when packing to a removable drive. The idea is that you can still update an archive when the existing one takes more than the remaining free space on the removable drive.

Example: 16GB flash drive, 100MB archive, 50MB free on flash drive. When changing the ZIP, TC has to create a new ZIP containing the added or modified files. This takes at least the same space as the existing archive, so 50MB wouldn't be sufficient. Therefore TC then creates the new archive in the given TEMP directory, verifies it, then deletes the old archive and moves the new one back to the flash drive.
Author of Total Commander
http://www.ghisler.com

Post Reply