Create folder
Creates an empty directory on the drive
Function CreateFolder(Val Token, Val Name, Val Parent = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Name | --title | String | ✔ | Folder name |
| Parent | --catalog | String | ✖ | Parent |
Returns: Map Of KeyAndValue - serialized JSON response from Google
1C:Enterprise/OneScript code example
Token = "ya29.a0ATi6K2tVhkOEu91I_FKDEZ7_olNcPRKrwKbGh7GiFIzwDZjaTNm46ErGj-Lju2am1aAUurgQyVnv0f3G4L7keHSXYNhuCPGvTvzjRdPQJNz_0LzKWjviK54u4...";
Directory = "1RA5EV-HEr2SDzooZLmZ2h6HnnmZ0EHzP";
Name = "TestFolder";
Result = OPI_GoogleDrive.CreateFolder(Token, Name, Directory);
- Bash
- CMD/Bat
oint gdrive CreateFolder \
--token "***" \
--title "TestFolder"
oint gdrive CreateFolder ^
--token "***" ^
--title "TestFolder"
Result
{
"kind": "drive#file",
"id": "1EPghIG7LdM20VWiWDig91PTofYQFcJNe",
"name": "TestFolder",
"mimeType": "application/vnd.google-apps.folder"
}