MoveFolder(folderPath, destinationPath) Last updated: 16. May 2023

API only function

Moves a folder within your site.

Parameters

Name Type Description
folderPath string Aboslute path to folder that you want to move.
destinationPath string Aboslute path to folder that you want to put the folder into.

Returns

An object with folder info if successful, otherwise throws and error.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
// Moves folder1 from root into folder2\folder3
docly.moveFolder("folder1", "folder2\\folder3");

// This folder will now exist
writer(docly.folderExists("folder2\\folder3\\folder1"));