OneDrive status column

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
kaze72
Junior Member
Junior Member
Posts: 2
Joined: 2011-10-05, 06:11 UTC

OneDrive status column

Post by *kaze72 »

Hi,

Is it possible to add a "status" column for OneDrive folders (only in cloud, on disk, etc), that's new to the "fall update" of W10?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm working on that. So far I only found a way to distinguish between files which are available offline, and those which are only online. But I couldn't find a way to detect whether the option was set to always keep a file also offline (filled green circle). There also seems to be no notification from Windows when the status of a file changes.
Author of Total Commander
https://www.ghisler.com
Beercules
New Member
New Member
Posts: 1
Joined: 2018-09-26, 08:32 UTC

Re: OneDrive status column

Post by *Beercules »

May I ask very polite, if there are any news regarding the OneDrive Status column? :-)
I saw the info that we can add "IconOverlaysOneDrive=1" in wincmd.ini - but this isn't the same as the status column in Explorer does, right?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: OneDrive status column

Post by *ghisler(Author) »

TC 9.2x is showing what is available to third party programs like TC: it shows a little cloud overlay symbol if a file is remote only. Other data as shown by the Explorer in its separate status column like which file is currently being uploaded or downloaded is not available to third party programs on Windows.
Author of Total Commander
https://www.ghisler.com
TCEcho
Junior Member
Junior Member
Posts: 7
Joined: 2016-11-15, 15:42 UTC
Location: Germany

Re: OneDrive status column

Post by *TCEcho »

Edit: correction, TC (x64) 9.50beta13 under Win 10 in fact displays a little cloud overlay symbol if a file is remote only.
ghisler(Author) wrote: 2018-09-26, 09:09 UTC TC 9.2x is showing what is available to third party programs like TC: it shows a little cloud overlay symbol if a file is remote only. Other data as shown by the Explorer in its separate status column like which file is currently being uploaded or downloaded is not available to third party programs on Windows.
I am using TC (x64) 9.50beta13 under Win 10. TC does neither display a status column nor a little cloud overlay symbol if a file is remote only. Any ideas what's going wrong?

BTW: if I add the custom column "file is offline" of contents "[=tc.offline]" TC correctly displays "yes" when OneDrive displays the cloud.

Regards TCEcho
JuRa
Junior Member
Junior Member
Posts: 3
Joined: 2022-01-27, 09:40 UTC

Re: OneDrive status column

Post by *JuRa »

Good morning :)

First of all I would like to say that I'm a big fan of the TC app from more than 20 years. I can't imagine working with Windows without it. Kudos to you Christian Ghisler.

I would like to ask if there is any update regarding this OneDrive's Status column in TC?
Or maybe chance to implement it in the near future?

Best regards,
Greg
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: OneDrive status column

Post by *ghisler(Author) »

Did you enable overlay icons in Configuration - Options - Icons? When I do this, I get small cloud icons for OneDrive files which are online only.
Author of Total Commander
https://www.ghisler.com
JuRa
Junior Member
Junior Member
Posts: 3
Joined: 2022-01-27, 09:40 UTC

Re: OneDrive status column

Post by *JuRa »

Apologies for such a late response from my side.
Yes, I enabled the "Show overlay icons" option, and this is working as expected, but I'm missing the "Status" column showing the current state of the files and even whole folders, as in the File Explorer. I think you know what I mean. Do you think this is something doable? I know you mentioned that OneDrive's API is not clear, not stating how this is made and/or how this can be implemented in third apps. But maybe there were some changes over years in this matter?
Best regards,
Greg
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: OneDrive status column

Post by *ghisler(Author) »

There are no functions to retrieve the other statuses of files, only the "offline only" status can be determined programmatically.
Therefore TC cannot show these other icons the way the Explorer shows them.
Author of Total Commander
https://www.ghisler.com
JuRa
Junior Member
Junior Member
Posts: 3
Joined: 2022-01-27, 09:40 UTC

Re: OneDrive status column

Post by *JuRa »

I understand. Thank you for your answer, Christian. Maybe in the future, Microsoft will release a better OneDrive's API for third parties.
Best regards,
Greg
celsius64
New Member
New Member
Posts: 1
Joined: 2024-02-26, 10:56 UTC

Re: OneDrive status column

Post by *celsius64 »

ghisler(Author) wrote: 2022-02-11, 15:16 UTC There are no functions to retrieve the other statuses of files, only the "offline only" status can be determined programmatically.
Therefore TC cannot show these other icons the way the Explorer shows them.
Image: https://i.postimg.cc/CL8rWtnZ/onedrive.jpg

Double Commander can distinguish between "sync pending" and "upload finished" state. TC should be able to do the same.
User avatar
beb
Senior Member
Senior Member
Posts: 430
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: OneDrive status column

Post by *beb »

Some file attributes meaning:

525344[0x00080410]Always Available (Locally available on Disk)
5248544[0x00501620]Online Available (Only on OneDrive)
ReparsePointLocally Available


Example attributes reading:

Code: Select all

# OneDriveContentsStatus.ps1
Get-ChildItem -path $env:OneDrive -recurse -force | ForEach-Object {
Write-Host $_.Attributes -f Red -no
if ($_.Attributes -eq 5248544)           {Write-Host ' Available when online           ' -f Cyan   -no}
if ($_.Attributes -eq 525344)            {Write-Host ' Always available on this device ' -f Green  -no}
if ($_.Attributes -match 'ReparsePoint') {Write-Host ' Available on this device        ' -f Yellow -no}
Write-Host $_.FullName
}
pause
# Note: when the path is $env:OneDrive (the entire cloud), the output can be huge,
# so using a certain subfolder with limited test contents would be pretty reasonable.
Example attribute breakdown (for 5248544 [0x00501620]):

Code: Select all

0x00501620

# 0x00500000
0x00400000 - FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS
0x00100000 - FILE_ATTRIBUTE_UNPINNED

# 0x00001000
0x00001000 - FILE_ATTRIBUTE_OFFLINE

# 0x00000600
0x00000400 - FILE_ATTRIBUTE_REPARSE_POINT
0x00000200 - FILE_ATTRIBUTE_SPARSE_FILE

# 0x00000020
0x00000020 - FILE_ATTRIBUTE_ARCHIVE
Some information:
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/ca28ec38-f155-4768-81d6-4bfeb8586fc9
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: OneDrive status column

Post by *ghisler(Author) »

I'm currently using the following three:
FILE_ATTRIBUTE_RECALL_ON_OPEN=0x40000
FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS=0x400000
-> cloud overlay
FILE_ATTRIBUTE_PINNED=0x80000
-> checkmark overlay

Using FILE_ATTRIBUTE_REPARSE_POINT os a bad idea because it is also set for real file system links.
Author of Total Commander
https://www.ghisler.com
Post Reply