Skip to content

this_process change_working_directory

Alairion edited this page May 8, 2021 · 2 revisions

nes::this_process::change_working_directory

Functions

(1) bool change_working_directory(const std::string& path);
  1. Tries to change the current process's working directory.

Parameters

Name Description
path An UTF-8 encoded relative or absolute path to a directory

Return value

  1. Returns true if the current process's working directory has been changed to path, otherwise, returns false.

Exceptions

  1. May propagates exception thrown by implementation-defined operations.

Implementation details

  1. On Windows, calls SetCurrentDirectoryW
    On Posix systems, calls chdir
Clone this wiki locally