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

Question: When using GraphClient, is it possible to create a nested folder, even if one or more of the intermediate folders don't exist? #862

Open
dekiesel opened this issue May 17, 2024 · 1 comment

Comments

@dekiesel
Copy link

Let's say I have a DriveItem and a path, like a/b/c.

I want to get folder c as a DriveItem. If c and/or the intermediate folders a/b don't exist I want to create them.

Is there an easy way to do this with GraphClient?
I found this for Web: Web.ensure_folder_path(path), as explained here, but this seems to be specific to Web.

Any ideas? Or do I need to iterate over all intermediate folders (from root) and create them if they don't exist?

Thanks in advance!

@vgrem
Copy link
Owner

vgrem commented May 26, 2024

Greetings,

Or do I need to iterate over all intermediate folders (from root) and create them if they don't exist?

appears to be the only option, let's keep this issue open until support for this method is introduced in the library.

Thank you for the good idea!

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

No branches or pull requests

2 participants