EmbedFileEntity

An entity in the file tree (either a file or a folder)

Since

0.1.0

See also

Inheritors

Properties

Link copied to clipboard
abstract val isDirectory: Boolean

If the entity is a folder

Link copied to clipboard
abstract val isFile: Boolean

If the entity is a file

Link copied to clipboard
abstract val name: String

The name of the file or folder

Link copied to clipboard
abstract val parent: EmbedFolder?

The parent of the entity

Link copied to clipboard
abstract val path: String

The path of the file or folder

Functions

Link copied to clipboard
open fun toFile(): EmbedFile

Convert the entity to a EmbedFile

Link copied to clipboard
open fun toFolder(): EmbedFolder

Convert the entity to a EmbedFolder