Page 1 of 1

File Attributes

Posted: 25 Apr 2010 18:29
by MiltR
The File Attribute field of the long list, the 'attr' field, contains 12 bit positions.
What is the meaning of each position?

Examples:

Directories: ---D--------
Files: -----N------

Re: File Attributes

Posted: 25 Apr 2010 18:41
by serendipity
Hi and Welcome,
You can select a file and see that in the "Properties" tab of info panel (menu "Window>Show Info Panel"). There are 4 columns and 3 rows. Screenshot:
Attributes.png
Tip: You can change the attributes from this panel by checking/unchecking the boxes.

Re: File Attributes

Posted: 25 Apr 2010 18:52
by MiltR
Thanks for the location...

I assume from my view of Attributes the left-to-right order of attribute bits is:
Read-only
Hidden
System
Directory
Archive
Normal
Temporary
Junction
Compressed
Offline
Not content indexed
Encrypted

Re: File Attributes

Posted: 25 Apr 2010 18:54
by admin
I just saw that the actual order in the Attr column is slightly different from the order on the Properties tab. But it is identical to trhe order as shown on the Attributes tab under the Find Files tab.
Here it is once again for reference (directly copied from the source code):

Code: Select all

  lAttr(0) = FILE_ATTRIBUTE_READONLY
  lAttr(1) = FILE_ATTRIBUTE_HIDDEN
  lAttr(2) = FILE_ATTRIBUTE_SYSTEM
  lAttr(3) = FILE_ATTRIBUTE_DIRECTORY
  lAttr(4) = FILE_ATTRIBUTE_ARCHIVE
  lAttr(5) = FILE_ATTRIBUTE_NORMAL
  lAttr(6) = FILE_ATTRIBUTE_TEMPORARY
  lAttr(7) = FILE_ATTRIBUTE_REPARSE_POINT 'Junction
  lAttr(8) = FILE_ATTRIBUTE_COMPRESSED
  lAttr(9) = FILE_ATTRIBUTE_OFFLINE
  lAttr(10) = FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
  lAttr(11) = FILE_ATTRIBUTE_ENCRYPTED
  sAttrChar(0) = "R"
  sAttrChar(1) = "H"
  sAttrChar(2) = "S"
  sAttrChar(3) = "D"
  sAttrChar(4) = "A"
  sAttrChar(5) = "N"
  sAttrChar(6) = "T"
  sAttrChar(7) = "J"
  sAttrChar(8) = "C"
  sAttrChar(9) = "O"
  sAttrChar(10) = "I"
  sAttrChar(11) = "E"