Handbook
Glossary
directory-entries ( path -- seq )
Factor handbook
»
Input and output
»
Directory manipulation
»
Directory listing
Next:
directory-files ( path -- seq )
Vocabulary
io
.
directories
Inputs
path
a pathname string
Outputs
seq
a sequence of
directory-entry
objects
Word description
Outputs the contents of a directory named by
path
.
Definition
USING:
accessors
io.backend
sequences
;
IN:
io.directories
:
directory-entries
( path -- seq )
normalize-path
(directory-entries)
[
name>>
{
"."
".."
}
member?
]
reject
;