module Zap::Utils::Glob
Overview
Cloned from the crystal standard library.
Enhanced with the ability to exclude files and directories.
Defined in:
utils/glob.crClass Method Summary
-
.[](patterns : Enumerable, match_hidden = false, follow_symlinks = false, exclude : Array(String) | Nil = nil) : Array(String)
Returns an array of all files that match against any of patterns.
-
.[](*patterns : Path | String, match_hidden = false, follow_symlinks = false, exclude : Array(String) | Nil = nil) : Array(String)
Returns an array of all files that match against any of patterns.
-
.glob(patterns : Enumerable, match_hidden = false, follow_symlinks = false, exclude : Array(String) | Nil = nil) : Array(String)
Returns an array of all files that match against any of patterns.
-
.glob(*patterns : Path | String, match_hidden = false, follow_symlinks = false, exclude : Array(String) | Nil = nil) : Array(String)
Returns an array of all files that match against any of patterns.
-
.glob(patterns : Enumerable, match_hidden = false, follow_symlinks = false, exclude : Array(String) | Nil = nil, &block : String -> _)
Yields all files that match against any of patterns.
-
.glob(*patterns : Path | String, match_hidden = false, follow_symlinks = false, exclude : Array(String) | Nil = nil, &block : String -> _)
Yields all files that match against any of patterns.