Scripting: Bitwise?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Zardoz2293
Posts: 637
Joined: 09 Nov 2011 20:20
Location: USA

Scripting: Bitwise?

Post by Zardoz2293 »

Scripting. Attributes, I don't see where or how to perform bitwise compare.

i.e., attrstamp( "h", 0, "<curpath>" )

Thanks
XYplorer v28.40.0612
MacOS Tahoe v27.2
VM (Client): Windows 11 Pro (AArch64), 26H2.26300.9818(10.0)
Windows Display: Main=MacBook 4112 x 2570 @200%; External 3840 x 2160 @125%

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

Re: Scripting: Bitwise?

Post by admin »

You want to retrieve the file attributes of items? Not possible yet.

Also bitwise comparison operators are not existing yet.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Scripting: Bitwise?

Post by TheQwerty »

admin wrote:You want to retrieve the file attributes of items? Not possible yet.

Code: Select all

Report('{attr}|', $items);
Then you can use string comparisons to get around the unfortunate lack of bitwise ones.

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

Re: Scripting: Bitwise?

Post by admin »

TheQwerty wrote:
admin wrote:You want to retrieve the file attributes of items? Not possible yet.

Code: Select all

Report('{attr}|', $items);
Then you can use string comparisons to get around the unfortunate lack of bitwise ones.
LOL, thanks for the tip. :)

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Scripting: Bitwise?

Post by TheQwerty »

admin wrote:LOL, thanks for the tip. :)
If you wish to repay the favor: documenting the full list of attribute abbreviations and their order under Report() or "Columns in the File List" would be appreciated. :mrgreen:

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

Re: Scripting: Bitwise?

Post by admin »

OK, done. :)

Attr: File Attributes, in the follow order:

Code: Select all

R = READONLY 
H = HIDDEN
S = SYSTEM  
D = DIRECTORY
A = ARCHIVE
N = NORMAL
T = TEMPORARY
J = REPARSE_POINT (=Junction)
C = COMPRESSED
O = OFFLINE
I = NOT_CONTENT_INDEXED
E = ENCRYPTED

Post Reply