Handbook
Glossary
with-matching-files ( dirpath extension quot -- )
Testing image encoders and decoders
Prev:
ls ( dirpath extension -- )
Vocabulary
images
.
testing
Inputs
dirpath
a pathname string
extension
a
string
quot
a
quotation
Outputs
None
Word description
Perform an operation on each file in
dirpath
with file extension
extension
.
Definition
USING:
io.directories
io.pathnames
kernel
sequences
;
IN:
images.testing
::
with-matching-files
( dirpath extension quot -- )
dirpath
[
[
dup
file-extension
extension
=
quot
[
drop
]
if
]
each
]
with-directory-files
;
inline