copying preserving packed os attribute

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

copying preserving packed os attribute

Post by *Hurdet »

When i copy a file packed from OS the destination loss the packed attribute.
Do it is possible to preserve it with TC and/or dos?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, that's not how the Windows CopyFileEx function behaves. It copies the file depending on the attribute of the target FOLDER: If the target folder has the "compressed" attribute set, all files copied to it will also have this attribute. Otherwise they will be uncompressed.
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

I have un folder A that set with compact.
I Junction other folder B not compacted.
I then see that B is not compacted and A is compacted.
Do it is normal?
A not is only a reference to B without news file copy in hard disk?
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3897
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

A Junction is just a special kind of link to a folder.
The Junction itself is not compacted, but it points to the same files, which are still compacted.
#5767 Personal license
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

Post by *Hurdet »

I understand this, and that is what I would expect.
But instead, if you read well, happens to me that the folder originally uncompressed when it copy to compressed drive is compressed in the target remaining in the uncompressed source.
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

If you copy/move file with compression and/or encryption attributes onto FAT32 drive, it will lose those atributes because FAT32 doesn't support those.
Also, if you copy files from NTFS to NTFS, they won't transfer the attributes, you have to MOVE them. Only with moving they will keep the 'compressed' attribute.
Post Reply