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