Support the 3 new file attributes possibilities (at least for VF)
Posted: 07 Mar 2019 00:57
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.
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:
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
AL - DOWNLOADED
ALOM - ONLINE ONLY (things like
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.
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:
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.