How do I download items inside a folder shared with me? #557
Replies: 2 comments
-
You should use:
You can filter some items although notice that Ms graph limits the filters you can apply. Then test each item returned to see if it's a folder and the name is the same as expected. Then you can get the folder and download it's items. |
Beta Was this translation helpful? Give feedback.
-
Did you get this sorted out? I've been trying to do the same thing. When I print out all the attributes of a shared folder called 'LVO', is_folder=False and is_file=True. However if I get remote=item.remote_item, is_folder=True and is_file=False. Unfortunately, when I try and do remote.get_items() it fails with: Item does not exist. Oddly, remote.child_count returns the right answer. Any clues appreciates. from O365 import Account
|
Beta Was this translation helpful? Give feedback.
-
I am trying to find a folder by its path, but I am not finding. I think it's because I am not the owner of the files, it was only shared with me. Although, when I search for the name of the folder a can find it and the files inside it.
To workaround this I was downloading every item that is not a folder and has the extension that I am searching for through this code below.
However, I am only being able to download files that belongs to my personal OneDrive library.
Beta Was this translation helpful? Give feedback.
All reactions