FileTreeEntry

sealed interface FileTreeEntry

A single entry in a FileTree.

Inheritors

Types

Link copied to clipboard
data class Directory(val name: String, val entries: List<FileTreeEntry>, val highlighted: Boolean = false) : FileTreeEntry

A branch entry representing a directory, which contains nested entries.

Link copied to clipboard
data class Ellipsis(val highlighted: Boolean = false) : FileTreeEntry

A placeholder entry indicating omitted content, created by a - ... item.

Link copied to clipboard
data class File(val name: String, val highlighted: Boolean = false) : FileTreeEntry

A leaf entry representing a file.

Properties

Link copied to clipboard
abstract val highlighted: Boolean

Whether this entry is visually highlighted (e.g. rendered in bold). An entry is highlighted when its text is wrapped in strong emphasis (**name**).