struct

Pylon::Disk

Inherits Struct < Value < Object

Constants

READ_BUFFER_BYTES = 64 * 1024
TEMPORARY_PREFIX = Scan::Ignores::TEMPORARY_PREFIX

Constructors

new(root : String)
Source

Instance methods

create_directory(relative_path : String) : Problem | Nil
Source
digest(relative_path : String, buffer : Bytes = Bytes.new(READ_BUFFER_BYTES), hasher : Digest::SHA256 = Digest::SHA256.new) : Bytes | Problem
Source
each_child(relative_path : String, & : String -> ) : Missing | Problem | Nil
Source
metadata(relative_path : String) : Scan::Metadata | Problem | Nil
Source
observe(relative_path : String) : Scan::Observed | Problem | Nil
Source
read(relative_path : String) : Bytes | Problem
Source
remove(relative_path : String) : Problem | Nil
Source
rename(from : String, to : String) : Problem | Nil
Source
set_executable(relative_path : String, executable : Bool) : Problem | Nil
Source
stream(relative_path : String, digest : Bytes, io : IO, buffer : Bytes, codec : Compress::Codec, scratch : Bytes, hasher : Digest::SHA256) : Nil
Source
write_file(relative_path : String, content : Bytes, executable : Bool) : Problem | Nil
Source