Closed mimranzulkfal closed 2 years ago
Please have a look at the sample project linked in the readme.
@RobinBobin I have gone through that but can't get it specifically for creating a new folder and writing JSON files to that folder.
Kindly tell me about some code snippets. I'll be thankful to you.
I'm creating same as it is but it's not creating a folder on my drive. Have a look:
Are you sure you don't have this folder already?
Is an exception thrown?
I have no folder with this name on the drive. Also there is no exception thrown.
Try running my project.
Try listing files to make sure you setup everything correctly.
If I use only this part only then folder is creating fine:
googleDrive.files.newMetadataOnlyUploader().setRequestBody({ name: "MyFolder", mimeType: MimeTypes.FOLDER, parents: ["root"], })
But it'll create a new folder with same name everytime.
What will happen if you run my project and press the corresponding button?
Hey Robin!
I have created a folder but now how please check I'm passing folderID right or not? My newly created folder name is condition_folder.
I'm doing in this way but file isn't uploading.
Please consult official google drive docs as for parents
. I think you're setting it wrong.
I'm pretty sure you'll find something interesting in the thrown exception.
Why are you pasting screenshots with your code? Imagine someone wants to copy paste it to run.
Hey @RobinBobin!
I want some help from this team. I want to create a new folder in the root directory in my GDrive and save new files in that folder. Can you share some code snippets for this purpose?
I'll be thankful to you :)