Handbook
Glossary
cwd ( -- path )
Factor handbook
»
Input and output
»
Directory manipulation
»
Current working directory
Prev:
cd ( path -- )
Vocabulary
io
.
files
.
private
Inputs
None
Outputs
path
a pathname string
Word description
Outputs the current working directory of the Factor process.
Notes
User code should use the value of the
current-directory
variable instead.
See also
cd
,
current-directory
,
set-current-directory
,
with-directory
Definition
USING:
io.backend
;
IN:
io.files.private
HOOK:
cwd
io-backend
( -- path )
Methods
USING:
io.files.private
kernel
;
M:
object
cwd
"."
;
USING:
io.files.private
io.files.unix
system
;
M:
unix
cwd
4096
(cwd)
;