TC not supporting compressed folder attribute

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
dnd
Junior Member
Junior Member
Posts: 3
Joined: 2010-09-09, 06:46 UTC

TC not supporting compressed folder attribute

Post by *dnd »

it seems that when extracting into a folder which requires Administrator access, TC does not respect the 'NTFS compressed' attribute of the folder and so the extracted files are not compressed. it seems to work fine if extracted into a non-Admin folder, and also if it is just copied into the Admin folder.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Cannot confirm. Windows 7 x64, I tried to extract files from ZIP and RAR into subfolder of Program Files which has compressed attribute, and unpacked via 'As Administrator' button files got compressed attribute.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50512
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Does it matter whether the TEMP directory is on the same drive? What TC does is extract the files to TEMP, and then use Tcmadmin.exe to move them to the requested destination. If you move files within the same drive, Windows MoveFile doesn't set any special attributes.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Yes, when I unpack file to D:\Programs that file was w/o compressed attribute (I have D:\Temp as temp folder).
dnd
Junior Member
Junior Member
Posts: 3
Joined: 2010-09-09, 06:46 UTC

Post by *dnd »

yes it seems to work if i extract to D: (my temp is on C: ). windows explorer extract works whether i use C: or D:.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50512
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately there is no solution because of the different way how move functions on the same drive and between two drives:
1) When the files are moved from a TEMP folder of a different drive, a new file is created in the target folder and the data is copied, then the original is deleted. Since a new file is created, it gets the attributes of that folder
2) When a file is moved within the same drive, the file remains unchanged, just the pointer to that file is moved to the other directory. Therefore the file keeps its old properties. Since TEMP isn't marked as compressed, the file will not be marked as compressed either.
Author of Total Commander
https://www.ghisler.com
dnd
Junior Member
Junior Member
Posts: 3
Joined: 2010-09-09, 06:46 UTC

Post by *dnd »

boo :P! ok that makes sense.
Post Reply