Make the 'Offline' attribute visible on files

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

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 »

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: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Make the 'Offline' attribute visible on files

Post by *Dalai »

You can search for such files via the Plugins tab:

Code: Select all

tc | offline | = | Yes
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
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 »

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 »

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