module CompileHelper
Defined in:
bakelite/compile_helper.crClass Method Summary
- .comp_enum_str(comp_sym : String) : String
- .compress_chunk(chunk_raw : Bytes, comp_sym : String) : Bytes
-
.emit_file(io : IO, full_disk_path : String, v_path : String, vol_name : String, mode : String, chunk_size : UInt32, comp_sym : String, transform_spec : String | Nil, auto_threshold : Int64 | Nil = nil)
Emits Crystal code to construct and add an item to the specified volume
-
.find_files(base_dir : String, patterns : Array(String), excludes : Array(String)) : Array(String)
Scans base_dir for files matching patterns and not matching excludes
- .process_folder_batch(mode : String, dir : String, prefix : String, volume_name : String, chunk_size : UInt32, comp_sym : String, transform_spec : String | Nil, exclude_csv : String, threshold : Int64 | Nil = nil)
- .process_manifest(manifest_path : String, base_dir : String = ".")
Class Method Detail
def self.emit_file(io : IO, full_disk_path : String, v_path : String, vol_name : String, mode : String, chunk_size : UInt32, comp_sym : String, transform_spec : String | Nil, auto_threshold : Int64 | Nil = nil)
#
Emits Crystal code to construct and add an item to the specified volume
def self.find_files(base_dir : String, patterns : Array(String), excludes : Array(String)) : Array(String)
#
Scans base_dir for files matching patterns and not matching excludes
def self.process_folder_batch(mode : String, dir : String, prefix : String, volume_name : String, chunk_size : UInt32, comp_sym : String, transform_spec : String | Nil, exclude_csv : String, threshold : Int64 | Nil = nil)
#