Hi
I am new to p7zip. I compress something with 7za and dump the archive and found the Attribute is an uint32_t. I search the codes and found statement like this: st_mode = Attribute << 16. I don't understand what the attribute means and what the permission (like 0755 or 0644) are converted into this field ?
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I am new to p7zip. I compress something with 7za and dump the archive and found the Attribute is an uint32_t. I search the codes and found statement like this: st_mode = Attribute << 16. I don't understand what the attribute means and what the permission (like 0755 or 0644) are converted into this field ?
Thank you.
low 16 bits for windows attributes
high 16 bits for posix attributes.
So one 32-bit value can store both versions of attributes.