module

BakedFileSystem::Loader

Class methods

filter_files(files : Array(String), include_patterns : Array(String) | Nil, exclude_patterns : Array(String) | Nil) : Array(String)

Filters a list of files based on include and exclude patterns If include patterns are provided, only files matching at least one include pattern are kept Then, files matching any exclude pattern are removed Returns filtered array of file paths

Source
load(io, root_path, include_dotfiles = false, include_patterns : Array(String) | Nil = nil, exclude_patterns : Array(String) | Nil = nil, max_size : Int64 | Nil = nil, compress = true)
Source
matches_pattern?(file : String, pattern : String) : Bool

Checks if a file path matches a glob pattern Patterns are matched against posix-style paths (using / separator)

Source

Nested types