class

Quartz::Simulator::Storage

Inherits Reference < Object

Constants

ROOT = "/ext"

Constructors

new(tmpdir : String | Nil = nil)
Source

Instance methods

exists?(path : String) : Bool
Source
flush_to_tmpdir

Flush the in-memory FS to the backing tmpdir. Caller-driven because most tests don't want disk I/O; opt in when you need a real path to hand to non-simulator code.

Source
list(path : String) : Array(String)
Source
mkdir(path : String) : Nil
Source
read(path : String) : Bytes
Source
read_string(path : String) : String
Source
rm(path : String) : Nil
Source
tmpdir
Source
write(path : String, data : Bytes | String) : Nil
Source