Skip to main content

createFolder

codebolt.fs.createFolder(folderName: string, folderPath: string): Promise<CreateFolderResponse>

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 newFolder in the /home/user/documents directory.

codebolt.fs.createFolder('newFolder', '/home/user/documents');

Explaination

The codebolt.fs.createFolder method is used to create a new folder in a specified directory. It has two parameters:

folderName (string): The name of the folder to be created.

folderPath (string): The path where the folder will be created.