Right now, I am writing a python desktop application. I want to create a folder in my google drive account by google drive api but I don’t know how to do it. I have seen the example of Files: insert on API reference, but this function only seems to upload a file existing in my computer. How can I create a folder?
Furthermore, can I create any type of file by google drive API and what is the use of function MediaFileUpload?
Right now, I am writing a python desktop application. I want to create a
Share
Creating a folder is documented here. On that same page, you’ll also find information on specifying MIME type (to answer your second question).
MediaFileUpload is a class and not a function. Commented code for this class is here.