Folder

data class Folder(val name: String, val path: String, val hidden: Boolean, val entries: List<FileSystemEntry>? = null) : FileSystemEntry(source)

Represents a directory in the filesystem.

Constructors

Link copied to clipboard
constructor(name: String, path: String, hidden: Boolean, entries: List<FileSystemEntry>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

child files and directories, or null if not loaded

Link copied to clipboard
open override val extension: String? = null

Always null since directories have no file extensions.

Link copied to clipboard
open override val hidden: Boolean

whether this entry is hidden

Link copied to clipboard
open override val name: String

filename or directory name

Link copied to clipboard
open override val path: String

complete filesystem path

Functions

Link copied to clipboard
open suspend override fun visit(depth: Int, visitor: suspend (FileSystemEntry) -> Unit)

Visits this folder and its descendants.