module
BakedFileSystem::Loader
Defined in:
loader/byte_counter.crloader/loader.cr
loader/stats.cr
Class Method Summary
-
.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
- .load(io, root_path, include_dotfiles = false, include_patterns : Array(String) | Nil = nil, exclude_patterns : Array(String) | Nil = nil, max_size : Int64 | Nil = nil)
-
.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)
Class Method Detail
def self.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
def self.load(io, root_path, include_dotfiles = false, include_patterns : Array(String) | Nil = nil, exclude_patterns : Array(String) | Nil = nil, max_size : Int64 | Nil = nil)
#
def self.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)