Skip to content

@jsvision/files / DirNode

Interface: DirNode

Defined in: files/src/fs/tree.ts:19

One row of the directory tree: what to draw, where it points, and how deep it sits.

Properties

connector

connector: string

Defined in: files/src/fs/tree.ts:27

The connector prefix (indent spaces + box glyphs); the drawn row is connector + label.


depth

depth: number

Defined in: files/src/fs/tree.ts:25

Depth from the root (the root is 0).


isCurrent

isCurrent: boolean

Defined in: files/src/fs/tree.ts:29

true for the current directory (the deepest node in the ancestor chain).


label

label: string

Defined in: files/src/fs/tree.ts:21

The directory basename (the root node shows the root path itself, e.g. / or C:).


path

path: string

Defined in: files/src/fs/tree.ts:23

The absolute path this node navigates to when activated.