...
isdir | True: This is a folder node False: This is a file node |
name | Name of file or folder |
folder | Internal identifier of the parent node. Folder IDs are required when manipulating files. |
exists | Boolean. Tells if the file or folder actually exists. If this node is a deliverable, it will be prepopulated with all information (such as the expected name of deliverable) but the deliverable may not yet exist on the server. |
readonly | Boolean. Tells if the file is readonly or not. The original file will be readonly. Currently, the API does not allow to set this flag, so basically it is of not much use today. |
date | File/folder date. Null if not exists. |
size | File/folder date. 0 if file/folder not exists. |
File nodes only | |
canPreview | Boolean. If true then the file can potentially be previewed in the browser. Use these methods for previewing:
|
Folder nodes only | |
scanned | Tells if the sub folders have been loaded. Ths is related to the populateDepth parameter. |
files | Only exists if isdir is true. Array of file nodes contained in the present folder node. |
folders | Only exists if isdir is true. Array of folder nodes contained in the present folder node. |
EXAMPLES
See this example:
...