Functions for Interacting with the Filesystem¶
glob()
¶
The glob()
function resolves file patterns to a
FileManifest.
This function accepts the following arguments:
include
(
list
ofstring
) Defines file patterns that will be matched using theglob
Rust crate. If patterns begin with/
or look like a filesystem absolute path, they are absolute. Otherwise they are evaluated relative to the directory of the current config file.exclude
(
list
ofstring
orNone
) File patterns used to exclude files from the result. All patterns ininclude
are evaluated beforeexclude
.strip_prefix
(
string
orNone
) Prefix to strip from the beginning of matched files.strip_prefix
is stripped afterinclude
andexclude
are processed.
Returns a FileManifest.