Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with shared folders/drives for onedrive business #104

Closed
wants to merge 3 commits into from

Conversation

MK-42
Copy link

@MK-42 MK-42 commented Aug 7, 2018

I'm actively using this branch since a few days to sync my organizations shared onedrive-folders with my local machine. This is a rebase of skilion/onedrive#302 onto current head.

Only culprit currently: Onedrive API reports '0' for all quotas, even if I'm able to upload stuff. I've overridden the quota checks and stuff will successfully get uploaded. I couldn't find any information how a zero quota should be interpreted (maybe it means unlimited?) or if/how it is reported for shared drives. Any ideas on that one?

No real work done by me here, all credits back to @jorge-leon.

Georg Lehner and others added 3 commits August 7, 2018 10:06
'drive_id' parameter. If this parameter is given, the driveUrl is modified
so all requests will go to the specified driveId in stead of the users
drive.

The file README.odrive.md shows, how to get the driveId of a Sharepoint
group.

We removed unused code which could create problems with future additions.

The variable itemByIdUrl is prefixed for the personal OneDrive drive.
However it is never used in the code. The itemByIdUrl is constructed on
the fly where needed.

The variable itemByPathUrl ditto, however is used in viewChangesByPath(),
a function which in turn is never used in the code.  The function seems
also to calculate the resulting path url incorrectly.

All three are removed, so if somebody wants to implement itemByPath
functionality in the future she does not stumble over hardcoded paths
which would have to be fixed if used on a none personal drive.
@abraunegg
Copy link
Owner

Thanks for this.

Will go over this, as I had some other idea's on how to get this solved, as there could be numerous business shared folders that you 'may' want to be syncing with.

Regarding the quota check - it potentially is '0' due to the changing driveId. Will have to see how I can create shared folders using the OneDrive Business Developers account so that I can test / work on this in due time.

@abraunegg abraunegg added this to the 3.x.x milestone Oct 3, 2018
@nocnokneo
Copy link

This gets the job done for me. I'll report back if I run into any issues.

@abraunegg
Copy link
Owner

Updated to master in PR #206

Closing this PR

@abraunegg abraunegg closed this Oct 23, 2018
@lock
Copy link

lock bot commented Jan 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants