Support the 3 new file attributes possibilities (at least for VF)

Features wanted...
Post Reply
jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Support the 3 new file attributes possibilities (at least for VF)

Post by jupe »

My wish is to add support for the following 3 new file attributes described below, in various areas of XY (mainly for VF), my main reason for asking is because in earlier versions of the OneDrive client Microsoft used junctions, which made it easy to use visual filters to see what was downloaded or not when using Files-On-Demand, using eg. attr:j, but of course they have decided to change that, and because VF don't support prop: prefix it makes it difficult to quickly be able to use visual filters for the above task (mainly so as to avoid things unintentionally downloading via HoverBox mouseover), so mainly my wish is to make the VF syntax support the new file attributes (bonus points for Attr column support etc.) that are required to achieve the above task. After a bit of research it seems that a combination of these attributes would need to be supported (or maybe only the MPU, listed near the bottom of this post, are needed?):

FILE_ATTRIBUTE_PINNED = 0x00080000
FILE_ATTRIBUTE_UNPINNED = 0x00100000
FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS = 0x00400000

Unsurprisingly, MS only bothered to document one of these new attributes here: https://docs.microsoft.com/en-us/window ... -constants but allows setting the other 2 user modifiable values via attrib:

2019-03-07_002503.png


If you were able to add the above attribute returns then hopefully I could use a combination of the 3 to determine the state, because after some quick tests (not thorough), the returns from <prop Attrib> returns the following 3 variations for the 3 main OneDrive states:

AL - DOWNLOADED
ALOM - ONLINE ONLY (things like !attr:o, I can't get to work in this context currently though, I assume because O isn't shown in the Attr column?)
ALP - ALWAYS AVAILABLE

Anyway I think the main attribute of interest in this context is this: FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS, meaning that it is online only, so even adding support for just that one would be great, or I am open to suggestions on workarounds, for VF.
To see the attached files, you need to log into the forum.

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

Re: Support the 3 new file attributes possibilities (at least for VF)

Post by admin »

Thanks for the info! :tup: Sure I will add those new file attributes everywhere. Only wondering how to squeeze them into the Properties / Name panel... well, I guess I just append them to the right end of it...

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Support the 3 new file attributes possibilities (at least for VF)

Post by jupe »

Wow thanks, just tried .0116, seems to work great for my main objective :biggrin: makes me wish I had asked earlier.

Post Reply