File Attributes

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
MiltR
Posts: 13
Joined: 25 Apr 2010 18:21

File Attributes

Post 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------
Regards,

Milt

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: File Attributes

Post 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.
To see the attached files, you need to log into the forum.

MiltR
Posts: 13
Joined: 25 Apr 2010 18:21

Re: File Attributes

Post 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
Regards,

Milt

admin
Site Admin
Posts: 66347
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: File Attributes

Post 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"

Post Reply