Handbook
Glossary
dirent-type>file-type ( type -- file-type )
Vocabulary
io
.
directories
.
unix
Inputs
type
an
object
Outputs
file-type
an
object
Definition
USING:
assocs
io.files.types
kernel
;
IN:
io.directories.unix
:
dirent-type>file-type
( type -- file-type )
H{
{
1
+fifo+
}
{
2
+character-device+
}
{
4
+directory+
}
{
6
+block-device+
}
{
8
+regular-file+
}
{
10
+symbolic-link+
}
{
12
+socket+
}
{
14
+whiteout+
}
}
at*
[
drop
+unknown+
]
unless
;