You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Let's say I have a
DriveItem
and a path, likea/b/c
.I want to get folder
c
as aDriveItem
. Ifc
and/or the intermediate foldersa/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 toWeb
.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!
The text was updated successfully, but these errors were encountered: