FolderNode

interface FolderNode(source)

A node of a folder tree that is not a local path, e.g. a folder the user shared through the Storage Access Framework (DocumentFolder). FileSystem serves it with the same tools as the workspace.

Inheritors

Properties

Link copied to clipboard
abstract val isDirectory: Boolean
Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val size: Long

Functions

Link copied to clipboard
open fun child(name: String): FolderNode?
Link copied to clipboard
abstract fun children(): List<FolderNode>
Link copied to clipboard
abstract fun createDirectory(name: String): FolderNode
Link copied to clipboard
abstract fun createFile(name: String): FolderNode
Link copied to clipboard
abstract fun read(): ByteArray
Link copied to clipboard
abstract fun write(bytes: ByteArray)