module BakedFileSystem::Loader

Defined in:

loader/byte_counter.cr
loader/loader.cr
loader/stats.cr

Class Method Summary

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


[View source]
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) #

[View source]
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)


[View source]