Is it possible to show OneDrive file status?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
jupe
Posts: 2758
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Is it possible to show OneDrive file status?

Post by jupe »

I also ran into this issue since I upgraded to Windows 1903, I think that Microsoft must have changed the way the sync client works (or it is just malfunctioning, I have had OneDrive issues in the past) I didn't bother fully investigating it, at the time I just quickly knocked up the below modification to the script, you may be able to improve it (regexmatches/gettokenindex etc), I never bothered because it worked well enough for my needs as is, it requires versions of XY 19.80+, so wasn't possible to be done this way at the time of the original scripts creation.

Code: Select all

      $state = property("Attrib", <cc_item>);
      if ($state Like "*M*") {
       return "<xyicons>\od.ico";
     } elseif ($state Like "*P*") {
       return "<xyicons>\od_a.ico";
     } else { return "<xyicons>\od_dl.ico"; }

LukeDukem
Posts: 4
Joined: 07 Sep 2019 13:51

Re: Is it possible to show OneDrive file status?

Post by LukeDukem »

Thanks for your answer. I tried your solution, but it seems that it doesn't work really well for all files and folders... your script seems not to be "complete", it doesn't handle all attributes.
I tried to complete the script by reading out the attributes a little bit better:

Code: Select all

$state = property("Attrib", <cc_item>);
if ($state == "A") { 
    return "<xyicons>\od_dl.ico"; }
elseif ($state == "D" || $state == "DAU" || $state == "DU" || $state == "DA" || $state == "AUM") { 
    return "<xyicons>\od.ico"; }
elseif ($state Like "*P*") {
       return "<xyicons>\od_a.ico"; }
else { return "<xyicons>\od_dl.ico"; }
But my testing results are not really good... some files are not shown the same icon as in original explorer file manager...

Anybody another idea? Would be so great if xyplorer could handle this, I think more and more users are using cloud data space, so this would be a rich enhancement for ths software.

LukeDukem
Posts: 4
Joined: 07 Sep 2019 13:51

Re: Is it possible to show OneDrive file status?

Post by LukeDukem »

Got nobody an idea? How can we use XYPlorer with OneDrive Status Icons? I'm shure, this would be an important feature for many users.

Henrique
Posts: 2
Joined: 13 Oct 2019 20:41

Re: Is it possible to show OneDrive file status?

Post by Henrique »

I realy miss that function

tosime
Posts: 2
Joined: 29 May 2020 15:03

Re: Is it possible to show OneDrive file status?

Post by tosime »

I was looking for a solution and simply jumped to the last entry.
I also need a solution so I don't have to switch between Explorer and XYplorer to know the cloud status of a file or directory.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Is it possible to show OneDrive file status?

Post by admin »

Does this issue persist in the current release of Windows 10?

drctrl
Posts: 3
Joined: 22 Nov 2021 04:49

Re: Is it possible to show OneDrive file status?

Post by drctrl »

Working on my side.

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Is it possible to show OneDrive file status?

Post by Horst »

Here the claud symbol is not shown in XY.
Only the Attr column shows ALU for files only available online.
My other file manager shows it as overlay on the file icon.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Is it possible to show OneDrive file status?

Post by admin »

The "L" in "ALU" is FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS. Is that a reliable indicator for "only available online"?

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Is it possible to show OneDrive file status?

Post by Horst »

admin wrote: 04 Sep 2022 10:01 The "L" in "ALU" is FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS. Is that a reliable indicator for "only available online"?
Yes, at least for me.
Only OneDrive files not yet donloaded have this attribute.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Is it possible to show OneDrive file status?

Post by admin »

If you run this through the address bar, do you see the cloud overlay in that list?

Code: Select all

sysicons 1, 0;

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Is it possible to show OneDrive file status?

Post by Horst »

admin wrote: 05 Sep 2022 09:00 If you run this through the address bar, do you see the cloud overlay in that list?

Code: Select all

sysicons 1, 0;
No
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Is it possible to show OneDrive file status?

Post by admin »

In the next beta try this: sysicons a, 0;

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Is it possible to show OneDrive file status?

Post by Horst »

It looks like this now
Screenshot - 05.09.2022 , 12_54_57.png
Screenshot - 05.09.2022 , 12_54_57.png (11.53 KiB) Viewed 1820 times
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Is it possible to show OneDrive file status?

Post by admin »

Well, this cloud overlay or cloud icon is apparently not available for third-party apps. It's probably embedded in Explorer.exe. So I could just emulate the cloud with an overlay I made myself. This is not nice, since all possible icon sizes have to be served.

Post Reply