Open
Description
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!