I am using C#, Google .NET API. How can I create a folder in Google Drive root location? Any code will be helpful. Thanks
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
In Google Drive API, a folder is nothing but a file with Mime Type:
application/vnd.google-apps.folder
In API v2, you can use:
For creating folder at the root directory, you may pass
"root"
as the parent ID.A folder can be treated as a file with a special MIME type: "application/vnd.google-apps.folder".
The following C# code should be what you need:
For more details check the docs: https://developers.google.com/drive/folder