HomeManualTopicsTypesSymbols

std::chdir

changes the current working directory

Parameter

pathname
the name of the new working directory

Results

None

Description

This function needs I/O-access rights.

Example

# make the user's home directory the current working directory get_environment $environment $HOME environment("HOME") chdir! HOME

Topic

POSIX

See also

std::chroot changes the root directory
std::getcwd returns the current working directory
std::mkdir creates a directory
std::realpath resolves the specified pathname