Documentation Prolog Predicate Reference os working_directory/2

working_directory/2

Get and update the current working directory.

Description

working_directory( -atom, +atom )

working_directory(Old, New) unifies Old with an absolute path to the current working directory and changes working directory to New. Use the pattern working_directory(CWD, CWD) to get the current directory.

Implementation