Handbook
Glossary
directory-files ( path -- seq )
Factor handbook
»
Input and output
»
Directory manipulation
»
Directory listing
Prev:
directory-entries ( path -- seq )
Next:
with-directory-entries ( path quot -- )
Vocabulary
io
.
directories
Inputs
path
a pathname string
Outputs
seq
a sequence of filenames
Word description
Outputs the contents of a directory named by
path
as a sequence of filenames.
Definition
USING:
accessors
sequences
;
IN:
io.directories
:
directory-files
( path -- seq )
directory-entries
[
name>>
]
map!
;