Package-level declarations

Types

Link copied to clipboard
open class EmbedFile(val name: String, val parent: EmbedFolder, val contents: ByteArray) : EmbedFileEntity

A virtual file in the file tree

Link copied to clipboard
interface EmbedFileEntity

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

Link copied to clipboard
open class EmbedFolder(val name: String, val parent: EmbedFolder?, files: Map<String, EmbedFileEntity>) : EmbedFileEntity

A virtual folder in the file tree

Functions

Link copied to clipboard
fun file(name: String, contents: ByteArray, parent: EmbedFolder): EmbedFile

Create a file

Link copied to clipboard
fun folder(name: String, vararg files: EmbedFileEntity, parent: EmbedFolder? = null): EmbedFolder

Create a file