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.a0AeDClZCuUGv3lVO8dyhcLNhY08vE-ingztWRKkv-QAvcs9f6z1x0StyUs2M2YRgdoHDpUUEeBm5wAfquh5Z2_afLxDoqTIrStzOWxDL66...";
Directory = "191iyaa6-2BCNRPOF0F8mQ0TuNWPNesdM";
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": "1grSYVEN_m8PfHLj5ZrpDyMqDEtbF00E9",
"name": "TestFolder",
"mimeType": "application/vnd.google-apps.folder"
}