createFolder
codebolt.fs.createFolder(folderName: string, folderPath: string): Promise<CreateFolderResponse>
Creates a new folder at the specified path.
Parameters
Name | Type | Description |
---|---|---|
folderName | string | The name of the folder to create. |
folderPath | string | The path where the folder should be created. |
Returns:
Promise<CreateFolderResponse>
A promise that resolves with the server response.Example
// Let's assume you want to create a folder named "exampleFolder" in the /home/user/documents directory.
codebolt.fs.createFolder('exampleFolder', '/home/user/documents');