cd ( path -- )
Factor documentation > Factor handbook > Input and output > Directory manipulation > Current working directory
Prev:absolute-path ( path -- path' )
Next:cwd ( -- path )


Vocabulary
io.files.private

Inputs and outputs
patha pathname string


Word description
Changes the current working directory of the Factor process.

Notes
User code should use with-directory or set-current-directory instead.

See also
cwd, current-directory, set-current-directory, with-directory

Definition
USING: io.backend ;

IN: io.files.private

HOOK: cd io-backend ( path -- )


Methods
USING: io.files.private kernel system unix unix.ffi ;

M: unix cd [ chdir ] unix-system-call drop ;