Skip to main content

createFolder

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

createFolder

Parameters

ParameterTypeRequiredDescription
folderNamestringYesThe name of the folder to create.
folderPathstringYesThe path where the folder should be created.

Returns

Promise<CreateFolderResponse> — A promise that resolves with the server response.

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.fs.createFolder('folderName', 'folderPath');
console.log(result);