How can you create folders using a path ?
See original GitHub issueCurrently you have a method called “create_child_folder”, is it possible to extend this method to support “path” (https://docs.microsoft.com/en-us/graph/api/driveitem-post-children?view=graph-rest-1.0)
OR
create a new method that supports path ie “create_folder_by _path” ? or “create_path_folder” ?
looking at the method, you have a data dictionary where you are building up the json response, so it should be a matter of adding (taken from docs.microsoft.com) to this dictionary:
"parentReference": {
"driveId": "5FE38E3C-051C-4D55-9B83-8A437658275B",
"id": "E67A8F34-B0AA-46E1-8FF7-0750A29553DF",
"path": "/drive/root:/"
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to Create a Directory or Folder - Computer Hope
Create a folder in a directory · Open Finder and navigate to the directory where you want to create the folder. · Click...
Read more >How can I create a directory if it does not exist using Python?
In Python, use the os.path.exists() method to see if a directory already exists, and then use the os.makedirs() method to create it.
Read more >How can I safely create a nested directory? - Stack Overflow
On Python ≥ 3.5, use pathlib.Path.mkdir : from pathlib import Path Path("/my/directory").mkdir(parents=True, exist_ok=True).
Read more >Create a new folder - Microsoft Support
Open File Explorer using one of the following methods: · Navigate to where you want to create the new folder, and click New...
Read more >Creating file paths - FileMaker Pro
Specify one or more directories in a path. file:$username/$fileName. file:JohnSmith/test.xlsx ; Specify absolute paths or relative paths, with various path type ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
heres my example of “create_folder_by_path” function - will park this code here and hope it helps someone in the future 😃
You will have to support this by yourself, as you did already.