Fs.MemoryOverlay
Definitions
def append(path: String, data: String, lower: Option[String], o: MemoryOverlay[r]): Result[IoError, Unit] \ r§ SourceAppends text. lower is the current content from the lower layer (if not in overlay/whiteout).
def appendBytes(path: String, data: Vector[Int8], lower: Option[Vector[Int8]], o: MemoryOverlay[r]): Result[IoError, Unit] \ r§ SourceAppends bytes. lower is the current content from the lower layer.
def appendLines(path: String, lines: List[String], lower: Option[String], o: MemoryOverlay[r]): Result[IoError, Unit] \ r§ SourceAppends lines. lower is the current content from the lower layer.
def copy(src: String, dst: String, lower: Option[Vector[Int8]], o: MemoryOverlay[r]): Result[IoError, Unit] \ r§ SourceCopies an entry. lower is the source bytes from the lower layer if not in overlay.
Deletes an entry (adds whiteout).
def glob(base: String, pattern: String, lower: Result[IoError, List[String]], o: MemoryOverlay[r]): Result[IoError, List[String]] \ r§ SourceMerges overlay entries with lower-layer glob results.
lower is the result of globbing from the real filesystem.
def list(dir: String, lower: Result[IoError, List[String]], o: MemoryOverlay[r]): Result[IoError, List[String]] \ r§ SourceMerges overlay listing with lower-layer listing.
lower is the result of listing from the real filesystem.
Creates a directory and all parents.
Generates a unique temp directory and registers it.
def move(src: String, dst: String, lower: Option[Vector[Int8]], o: MemoryOverlay[r]): Result[IoError, Unit] \ r§ SourceMoves an entry. lower is the source bytes from the lower layer if not in overlay.
Returns true if the path needs lower-layer content (not in overlay, not whiteout'd).
Truncates a file (stores empty content).
Overlay-aware exists check.
Overlay-aware isDirectory check.
Overlay-aware isExecutable. In-memory entries are never executable.
Overlay-aware isReadable. In-memory entries are always readable.
Overlay-aware isRegularFile check.
Overlay-aware isSymbolicLink check. In-memory entries are never symlinks.
Overlay-aware isWritable. In-memory entries are always writable.
Overlay-aware read (text).
def tryReadBytes(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Vector[Int8]]] \ r§ SourceOverlay-aware readBytes.
def tryReadLines(path: String, o: MemoryOverlay[r]): Option[Result[IoError, List[String]]] \ r§ SourceOverlay-aware readLines.
Overlay-aware size query. Computes from content length.
Overlay-aware time query. In-memory entries return 0.
Stores text content.