Skip to content

TreeNode

A node in the tree structure.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
namestringName of the file or directory.
pathstringFull path within the file system.
typestringEntry type: “file” or “directory”.
sizeintegerFile size (0 for directories).
childrenTreeNode[]Child nodes (for directories).
{
"name": "...",
"path": "...",
"type": "...",
"size": 0,
"children": [
{
"name": "...",
"path": "...",
"type": "...",
"size": 0,
"children": []
}
]
}