Page 1 of 1

Make the 'Offline' attribute visible on files

Posted: 2019-06-14, 16:40 UTC
by grawity
Both OneDrive and Dropbox make use of the 'Offline' attribute (FILE_ATTRIBUTE_OFFLINE) in their partial-sync systems. Some programs like `dir` recognize this attribute and e.g. show the file size in parens.

Currently this attribute is entirely invisible through Total Commander -- it's not in the "Attributes" column, and it cannot be used in file search (e.g. I cannot define a custom color rule for it like I already can with "hidden" or "compressed" files). With Dropbox the offline files are recognizable if I enable icon overlays, but that doesn't work in other cases.

Could searching by this attribute, and/or showing this attribute in the file list (next to 'rahs') be added to a future version?

Image: https://nullroute.eu.org/tmp/cap/2019-06-14.193239.blizzard.png

Re: Make the 'Offline' attribute visible on files

Posted: 2019-06-14, 16:49 UTC
by Dalai
You can search for such files via the Plugins tab:

Code: Select all

tc | offline | = | Yes
Regards
Dalai

Re: Make the 'Offline' attribute visible on files

Posted: 2019-06-14, 16:58 UTC
by grawity
Ah, is that built in? Good to know.

Re: Make the 'Offline' attribute visible on files

Posted: 2019-06-15, 08:15 UTC
by grawity
Hmm, it works for Dropbox stubs (which have +AO according to `attrib` in cmd), but oddly not for OneDrive stubs (which have +AOU but tc.offline=yes does not find them).

Maybe TotalCmd's existing "old-style" OneDrive support from 2017 is interfering with it?