current-directory
Factor handbook » Input and output » Directory manipulation » Current working directory

Next:set-current-directory ( path -- )


Vocabulary
io.pathnames

Word description
A variable holding the current directory as an absolute path. Words that use the filesystem do so in relation to this variable.

This variable should never be set directly; instead, use set-current-directory or with-directory. This preserves the invariant that the value of this variable is an absolute path.

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

Variable value
Current value in global namespace:
"/Users/jbenedik/builds64/2024-11-20-16-02/factor"


Definition