Directory locations of this process or user. More...
Enumerations | |
| enum class | Error { Success = 0 , Permission , NotFound , Failed } |
| Directory enumerators. More... | |
Functions | |
| StormByte::Error::Fault | LastError () noexcept |
| Last Directory error on this thread. | |
| bool | Current (StormByte::String::String &path) |
| Current working directory. | |
| bool | Home (StormByte::String::String &path) |
| Current user home directory. | |
| bool | Temporary (StormByte::String::String &path) |
| Directory used for temporary files. | |
| bool | CurrentExecutable (StormByte::String::String &path) |
| Directory that contains the running executable. | |
Directory locations of this process or user.
Each call returns true on success and updates LastError for this thread. An output String is valid only when the call returned true.
|
strong |
Directory enumerators.
Domain tag StormByte.System.Directory. Zero is success.
| Enumerator | |
|---|---|
| Success | No error. |
| Permission | The process may not read this directory. |
| NotFound | The directory or a required environment value is missing. |
| Failed | The platform call failed. |
| bool StormByte::System::Directory::Current | ( | StormByte::String::String & | path | ) |
Current working directory.
| [out] | path | Absolute directory. Written only on success. |
| bool StormByte::System::Directory::CurrentExecutable | ( | StormByte::String::String & | path | ) |
Directory that contains the running executable.
| [out] | path | Absolute directory. Written only on success. |
| bool StormByte::System::Directory::Home | ( | StormByte::String::String & | path | ) |
Current user home directory.
| [out] | path | Absolute directory. Written only on success. |
|
noexcept |
| bool StormByte::System::Directory::Temporary | ( | StormByte::String::String & | path | ) |
Directory used for temporary files.
| [out] | path | Absolute directory. Written only on success. |