Handbook
Glossary
glob ( glob -- files )
Globs
Next:
rglob ( glob -- files )
Vocabulary
globs
Inputs
glob
a
string
Outputs
files
a
sequence
Word description
Search the
current-directory
using a
glob
pattern. This supports some wildcard characters:
*
Matches multiple characters
?
Matches a single character
[]
Matches a specified group of characters
Definition
USING:
arrays
globs.private
kernel
make
sequences
;
IN:
globs
:
glob
( glob -- files )
glob-path
[
[
1array
f
swap
]
when-empty
glob%
]
{
}
make
;