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.
def delete(path: String, o: MemoryOverlay[r]): Result[IoError, Unit] \ r
SourceDeletes an entry (adds whiteout).
def fresh(rc: Region[r]): MemoryOverlay[r] \ r
SourceCreates a fresh, empty overlay in region rc.
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.
def mkDir(path: String, o: MemoryOverlay[r]): Result[IoError, Unit] \ r
SourceCreates a directory.
def mkDirs(path: String, o: MemoryOverlay[r]): Result[IoError, Unit] \ r
SourceCreates a directory and all parents.
def mkTempDir(prefix: String, o: MemoryOverlay[r]): Result[IoError, String] \ r
SourceGenerates 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.
def needsLower(path: String, o: MemoryOverlay[r]): Bool \ r
SourceReturns true if the path needs lower-layer content (not in overlay, not whiteout'd).
def truncate(path: String, o: MemoryOverlay[r]): Result[IoError, Unit] \ r
SourceTruncates a file (stores empty content).
def tryExists(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Bool]] \ r
SourceOverlay-aware exists check.
def tryIsDirectory(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Bool]] \ r
SourceOverlay-aware isDirectory check.
def tryIsExecutable(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Bool]] \ r
SourceOverlay-aware isExecutable. In-memory entries are never executable.
def tryIsReadable(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Bool]] \ r
SourceOverlay-aware isReadable. In-memory entries are always readable.
def tryIsRegularFile(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Bool]] \ r
SourceOverlay-aware isRegularFile check.
def tryIsSymbolicLink(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Bool]] \ r
SourceOverlay-aware isSymbolicLink check. In-memory entries are never symlinks.
def tryIsWritable(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Bool]] \ r
SourceOverlay-aware isWritable. In-memory entries are always writable.
def tryRead(path: String, o: MemoryOverlay[r]): Option[Result[IoError, String]] \ r
SourceOverlay-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.
def trySize(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Size]] \ r
SourceOverlay-aware size query. Computes from content length.
def tryTime(path: String, o: MemoryOverlay[r]): Option[Result[IoError, Int64]] \ r
SourceOverlay-aware time query. In-memory entries return 0.
def write(path: String, data: String, o: MemoryOverlay[r]): Result[IoError, Unit] \ r
SourceStores text content.
def writeBytes(path: String, data: Vector[Int8], o: MemoryOverlay[r]): Result[IoError, Unit] \ r
SourceStores byte content.
def writeLines(path: String, lines: List[String], o: MemoryOverlay[r]): Result[IoError, Unit] \ r
SourceStores lines as text content.