Skip to content

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

Description

@dekiesel

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions