Skip to content

this_process working_directory

Alairion edited this page May 8, 2021 · 2 revisions

nes::this_process::working_directory

Functions

(1) std::string working_directory();
  1. Returns the current process's working directory.

Parameters

None.

Return value

  1. Returns UTF-8 encoded std::string that is the absolute path of current process's working directory.

Exceptions

  1. May throw any exception thrown by std::string.

Implementation details

  1. On Windows, calls GetCurrentDirectoryW
    On Posix systems, calls getcwd.
Clone this wiki locally