Create folder
Creates a directory on the disk
Function CreateFolder(Val Token, Val Path) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Path | --path | String | ✔ | Path to the created folder |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
1C:Enterprise/OneScript code example
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/" + String(New UUID);
Result = OPI_YandexDisk.CreateFolder(Token, Path);
- Bash
- CMD/Bat
oint yadisk CreateFolder \
--token "***" \
--path "/a59f98d1-19e7-424d-9cae-4e69ba1397ca"
oint yadisk CreateFolder ^
--token "***" ^
--path "/a59f98d1-19e7-424d-9cae-4e69ba1397ca"
Result
{
"path": "disk:/a59f98d1-19e7-424d-9cae-4e69ba1397ca",
"type": "dir",
"name": "a59f98d1-19e7-424d-9cae-4e69ba1397ca",
"created": "2025-09-15T22:23:39+00:00",
"modified": "2025-09-15T22:23:39+00:00",
"_embedded": {
"path": "disk:/a59f98d1-19e7-424d-9cae-4e69ba1397ca",
"limit": 20,
"offset": 0,
"sort": "",
"total": 0,
"items": []
},
"resource_id": "1573541518:cf76440004649f46f7f2f7335eb100e90d66ba37f55abcf901f62ecbb107fa20",
"revision": 1757975019424055,
"comment_ids": {
"public_resource": "1573541518:cf76440004649f46f7f2f7335eb100e90d66ba37f55abcf901f62ecbb107fa20",
"private_resource": "1573541518:cf76440004649f46f7f2f7335eb100e90d66ba37f55abcf901f62ecbb107fa20"
},
"exif": {}
}