Handbook
Glossary
(directory-entries) ( 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
.
Notes
This is a low-level word, and user code should call one of the related words instead.
Definition
USING:
system
;
IN:
io.directories
HOOK:
(directory-entries)
os
( path -- seq )
Methods
USING:
io.directories
io.directories.unix
kernel
sequences
system
unix.ffi
;
M:
unix
(directory-entries)
[
dirent
new
[
next-dirent
]
2curry
[
>directory-entry
]
produce
nip
]
with-unix-directory
;