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

drv$list_shared_items() returns list of ms_object and not list of ms_drive_items #206

Open
mstackhouse opened this issue Mar 26, 2024 · 3 comments

Comments

@mstackhouse
Copy link

Currently I'm trying to access shared a shared folder, so in order to find the shared folder item I'm using the method drv$list_shared_items(). The list that's returned is a list of ms_object objects.

Prior to version, I could use that item directly to access files from within the shared folder using folder_item$get_item("path"), but now that the items are classed as ms_object the get_item() method is not available.

In the documentation, it states:

Because of how the Graph API handles access to shared items linked in the root, you cannot directly access subitems of shared folders via the drive get_item method, like this: drv$get_item("shared_folder/path/to/file"). Instead, get the item into its own object, and use its get_item method: drv$get_item("shared_folder")$get_item("path/to/file")

Unfortunately I can't get this to work, because:

  • I can't find an applicable way to enter the "shared_folder" path, because any path that I provide is pointing into my own OneDrive folder as the root path, and
  • I can't find any ItemID within the ms_object properties that is accessible using drv$get_item(). Any ID that I try returns a 404.
@mstackhouse
Copy link
Author

mstackhouse commented Apr 3, 2024 via email

@dcomputing
Copy link

I think you just sent this via a reply to the email, but just an FYI this didn't update as a comment on the GitHub issue itself: #206

Sorry, I deleted the comment I had posted. The code I was dealing with depended on the previous data frame table that had the properti isDir set. I have yet to work out how to handle 2.4.0's list_share_items output. I thought I could call the ms_drive_item's is_folder function but as you say, it is not a list of ms_drive_items.

@awosoga
Copy link

awosoga commented Sep 27, 2024

Experiencing this issue as well, has a workaround been proposed yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants