TreeResponse
A directory tree: nested from root, and as a flat list in entries.
Kind: an object, used in responses.
Fields
Section titled “Fields”Every field is present in a response; empty ones are null.
| Field | Type | Description |
|---|---|---|
root | TreeNode| null | Root node of the tree. |
entries | TreeEntry[] | Flat list of all entries (alternative view). |
fileCount | integer | Total number of files found. |
directoryCount | integer | Total number of directories found. |
Example
Section titled “Example”{ "root": { "name": "...", "path": "...", "type": "...", "size": 0, "children": [ {} ] }, "entries": [ { "path": "...", "type": "...", "depth": 0, "size": 0 } ], "fileCount": 0, "directoryCount": 0}Where it’s used
Section titled “Where it’s used”vfs.open(name).tree(POST /namespaces/{namespaceName}/vfs/by-name/{name}/tree)vfs.openById(id).tree(POST /vfs/by-id/{id}/tree)