rodneyviana / ODSyncService

OneDrive service/DLL for Sync State
MIT License
93 stars 26 forks source link

ByPath not working with subfolders #36

Open shuantsu opened 2 years ago

shuantsu commented 2 years ago

I'm trying to use the bypath flag with subfolders but not managing to get the desired result beyond 1 level.

This is the content of onedrive.ps1:

Import-Module .\one-drive\OneDriveLib.dll

Get-ODStatus -ByPath "$($env:OneDrive)\$($args[0])"

Then using it:

onedrive.ps1 "SCRIPTS"
>>> SharedSync

I'm trying this command but always getting OnDemanOrUnknown even if the subfolders are synced.

onedrive.ps1 "SCRIPTS\PYTHON TDD BOOK"
>>> OnDemandOrUnknown

It simply doesn't work, even after trying several combinations of string interpolation.

Any help?

shiv-g4 commented 2 years ago

Even I tried above command but getting OnDemanOrUnknown only as output even if the folder is synced.

PStoner3 commented 1 year ago

Simply running get-odstatus -ByPath "$($env:OneDrive)" doesn't work for me. I receive OnDemandOrUnknown. Using latest version OneDriveLib 1.0.7796.25985.

Kevin-Nanez commented 8 months ago

any solution?