InMemoryFs
Type of fully in-memory file systems, and its functions.
Enums
| Entry | Type of in-memory file contents, either text or bytes. |
Definitions
Returns the last access time of path in o in milliseconds since the epoch.
Appends the string data to the file path in o, creating it if it does not exist.
def appendBytes(path: String, data: Vector[Int8], o: InMemoryFs[r]): Result[IoError, Unit] \ r + Clock§ SourceAppends the bytes data to the file path in o, creating it if it does not exist.
def appendLines(path: String, lines: List[String], o: InMemoryFs[r]): Result[IoError, Unit] \ r + Clock§ SourceAppends the given lines to the file path in o, creating it if it does not exist.
def copy(src: String, dst: String, opts: Set[CopyOption], o: InMemoryFs[r]): Result[IoError, Unit] \ r + Clock§ SourceCopies the file src to dst in o using the given copy options opts.
Returns the creation time of path in o in milliseconds since the epoch.
Deletes the file or directory path from o.
Returns true if path exists as a file or directory in o.
Creates a fresh, empty in-memory filesystem in region rc.
def glob(base: String, pattern: String, o: InMemoryFs[r]): Result[IoError, List[String]] \ r§ SourceReturns the paths in o under base that match the glob pattern.
Returns true if path is a directory in o.
Returns false, since no entry in the in-memory file system is executable.
Returns true if path exists in o, since every entry is readable.
Returns true if path is a file in o.
Returns false, since the in-memory file system has no symbolic links.
Returns true if path exists in o, since every entry is writable.
Returns the names of the entries in the directory dir in o.
Creates the directory path in o, failing if it already exists.
Creates the directory path and any missing parent directories in o.
Creates a new temporary directory in o whose name starts with prefix and returns its path.
Returns the last modification time of path in o in milliseconds since the epoch.
def move(src: String, dst: String, opts: Set[MoveOption], o: InMemoryFs[r]): Result[IoError, Unit] \ r§ SourceMoves the file src to dst in o using the given move options opts.
Returns the contents of the file path in o as a string.
Returns the contents of the file path in o as a vector of bytes.
Returns the lines of the file path in o.
Returns the size of the file path in o.
Truncates the existing file path in o to zero length.
Writes the string data to the file path in o, replacing any existing contents.