DirectoryContainer

class DirectoryContainer(root: File, val entries: Set<Url>) : Container<Resource>

A file system directory as a Container.

Constructors

Link copied to clipboard
constructor(root: File, entries: Set<Url>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val entries: Set<Url>

List of all the container entries.

Link copied to clipboard

Direct source to this container, when available.

Functions

Link copied to clipboard
open override fun close()

Closes this object and releases any resources associated with it. If the object is already closed then invoking this method has no effect.

Link copied to clipboard
open operator override fun get(url: Url): Resource?

Returns the entry at the given url or null if there is none.

Link copied to clipboard
open operator override fun iterator(): Iterator<Url>
Link copied to clipboard
inline suspend fun <S> Container<Readable>.readDecodeOrNull(url: Url, decode: (ByteArray) -> Try<S, DecodeError>): S?