Skip to main content

createFolder

codebolt.fs.createFolder(folderName: string, folderPath: string): Promise<CreateFolderResponse>
Creates a new folder at the specified path.

Parameters

NameTypeDescription
folderNamestringThe name of the folder to create.
folderPathstringThe 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');