-
Notifications
You must be signed in to change notification settings - Fork 88
Remote items and shared folders #91
Comments
But it works, if I use the Maaan, I really wanted to avoid implementing an ID-based directory browser. It's so similar to Google Drive and I think it's awful. Dropbox has a really good API purely based on paths, as it should be. I guess I have no choice, or maybe someone here has an idea to use paths to access shared folders? |
Hi @MuscleRumble, Can you give an example of a failing query using itemByPath? I did a quick test against a shared folder and it returned the item including remoteItem facet as expected (at least in the JSON response - as you noticed, remoteItem is not exposed as a property on ODItem yet): [ODClient authenticatedClientWithCompletion:^(ODClient *client, NSError *error){
[[[[[client drive] items:@"root"] itemByPath:@"sharedfolder"] request] getWithCompletion:^(ODItem *response, NSError *error) {
NSLog(@"name: %@ id: %@", response.name, response.id);
}];
}]; |
Thanks for looking into it! Sorry, I wasn't clear enough. Now try to get the children of this shared folder by using the [[[[[[client drive] items:@"root"] itemByPath:@"sharedfolder"] children] request] getWithCompletion:^(...){...}] That doesn't work for me. I can't "navigate" inside a shared folder by its path. |
Ah, gotcha. Yes, unfortunately that's less than convenient. I'll forward this feedback to the service team. |
As of PR #96 remoteItem should be supported (will need to explicitly point pod at this commit until pod is versioned next) |
Alright, thanks! How about "navigating" through a shared folder by its path. Any update on this? |
I haven't heard back, but will post here when I do. |
Unfortunately it looks like there is nothing planned in that regard in the short term, but it's been added to the growing "to-investigate" list of features :) |
Okay, I guess I have to work with IDs then. Thanks for the info! |
It seems to me that this SDK doesn't take remote items and shared folders into account, as it should do: https://dev.onedrive.com/misc/working-with-links.htm
I came across this issue, because
ODItem
'sfolder
property is nil for shared folders. It would be great if this SDK would handle shared folders properly. I'll implement on a workaround for my project in the meantime.Edit: Maybe some further information for reproducing... share a folder from a second account to your first account... that's it! That means, you can't be the owner of the shared folder. If you're the owner of the shared folder, everything's just fine. The other way round causes the issue.
The text was updated successfully, but these errors were encountered: