Handbook
Glossary
ch>file-type ( ch -- type )
Vocabulary
io
.
files
.
info
.
unix
Inputs
ch
an
object
Outputs
type
an
object
Definition
USING:
combinators
io.files.types
kernel
;
IN:
io.files.info.unix
:
ch>file-type
( ch -- type )
{
{
98
[
+block-device+
]
}
{
99
[
+character-device+
]
}
{
100
[
+directory+
]
}
{
108
[
+symbolic-link+
]
}
{
115
[
+socket+
]
}
{
112
[
+fifo+
]
}
{
45
[
+regular-file+
]
}
[
drop
+unknown+
]
}
case
;