--- sidebar_position: 5 description: Create folder and other functions to work with Google Drive in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Google Drive] --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # 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
```bsl title="1C:Enterprise/OneScript code example" Token = "ya29.a0ATi6K2vCKZGdsROD6p4-PsRwj0R0IJCCgFNKVTrqZmarMewY0YTQB537qkfJ660fM22IAhP9gcaBIfx5DKhOVduDiMzGSG_R5TPqzjZkS0nkthqIOxp27om7j..."; Directory = "1RA5EV-HEr2SDzooZLmZ2h6HnnmZ0EHzP"; Name = "TestFolder"; Result = OPI_GoogleDrive.CreateFolder(Token, Name, Directory); ``` ```bash oint gdrive CreateFolder \ --token "***" \ --title "TestFolder" ``` ```batch oint gdrive CreateFolder ^ --token "***" ^ --title "TestFolder" ``` ```json title="Result" { "kind": "drive#file", "id": "1EPghIG7LdM20VWiWDig91PTofYQFcJNe", "name": "TestFolder", "mimeType": "application/vnd.google-apps.folder" } ```