Make the 'Offline' attribute visible on files

Here you can propose new features, make suggestions etc.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
grawity
Junior Member
Junior Member
Posts: 8
Joined: 2007-06-15, 08:26 UTC

Make the 'Offline' attribute visible on files

Post by *grawity » 2019-06-14, 16:40 UTC

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
Last edited by grawity on 2019-06-14, 16:58 UTC, edited 1 time in total.

User avatar
Dalai
Power Member
Power Member
Posts: 6589
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Make the 'Offline' attribute visible on files

Post by *Dalai » 2019-06-14, 16:49 UTC

You can search for such files via the Plugins tab:

Code: Select all

tc | offline | = | Yes
Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

grawity
Junior Member
Junior Member
Posts: 8
Joined: 2007-06-15, 08:26 UTC

Re: Make the 'Offline' attribute visible on files

Post by *grawity » 2019-06-14, 16:58 UTC

Ah, is that built in? Good to know.

grawity
Junior Member
Junior Member
Posts: 8
Joined: 2007-06-15, 08:26 UTC

Re: Make the 'Offline' attribute visible on files

Post by *grawity » 2019-06-15, 08:15 UTC

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?

Post Reply