dsx-core
Version:
The core framework of Dropbox Solutions Accelerators. This framework contains all needed functionalities to work with Dropbox APIs. It handles authentication, http requests and responses, and all needed endpoints.
20 lines (16 loc) • 472 B
JavaScript
export async function createFolder(dbx, path, autoRename = false) {
const response = await dbx.filesCreateFolderV2({
path: path,
autorename: autoRename,
});
const createdFolder = response.result;
return createdFolder;
}
export async function createFolderBatch(dbx, paths, autoRename = false) {
const response = await dbx.filesCreateFolderBatch({
paths: paths,
autorename: autoRename,
});
const createdFolders = response.result;
return createdFolders;
}