Skip to main content
Version: 5.7.0

SysMoveFolder

Move a folder (and its contents). Returns the updated directory tree.

ServiceOperation
globalFileV3SYS_MOVE_FOLDER

Method Parameters

ParameterDescription
treeIdThe id of the folder to move
treeVersionCurrent tree version
newCloudPathNew path to move the folder to
updatedNameUpdated name for the folder
createInterimDirectoriesCreate any sub-folders that don't already exist in newCloudPath ?

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"globalTree": {
"tree": [
{
"treeId": "2188e9cf-27fa-4a33-8d06-3306f9a74bf8",
"name": "art",
"type": "Folder",
"desc": "Folder for art assets",
"children": null
},
{
"treeId": "146cce63-da7a-40c7-bd57-5b5f81607523",
"name": "audio",
"type": "Folder",
"desc": "For audio files",
"children": [
{
"treeId": "1330b5c1-5af4-46d9-820e-c0de1c109366",
"name": "xxx",
"type": "Folder",
"desc": null,
"children": null
}
]
},
{
"treeId": "4a98c288-e1ab-4cb8-bdf4-66f7d4ea0739",
"name": "xaudio",
"type": "Folder",
"desc": "",
"children": [
{
"treeId": "02888d60-3caa-4b9a-b9b0-9d8eac5d410d",
"name": "yyy",
"type": "Folder",
"desc": "",
"children": [
{
"treeId": "56b1c593-92d2-4e49-a997-0e493111d7b2",
"name": "tempdir",
"type": "Folder",
"desc": "Seeing how multilevel works",
"children": null
}
]
}
]
}
],
"treeVersion": 5
}
}
}