Namespaces | |
path | |
Functions | |
bool | emptydir (const std::string &path) |
Remove files and directories from directory. More... | |
std::string | exedir () |
Get canonical path to directory containing executable file. More... | |
std::string | exename () |
Get name of executable. More... | |
std::string | exepath () |
Get canonical path of executable file. More... | |
std::string | getcwd () |
Get absolute path of the (current) working directory. More... | |
bool | makedirs (const std::string &path) |
Make directory including parent directories if required. More... | |
bool | mkdir (const std::string &path) |
Make directory. More... | |
std::string | readlink (const std::string &path) |
Read value of symbolic link. More... | |
bool | rmdir (const std::string &path) |
Remove empty directory. More... | |
bool | rmtree (const std::string &path) |
Remove whole directory tree. More... | |
bool basis::os::emptydir | ( | const std::string & | path | ) |
string basis::os::exedir | ( | ) |
string basis::os::exename | ( | ) |
Get name of executable.
string basis::os::exepath | ( | ) |
string basis::os::getcwd | ( | ) |
bool basis::os::makedirs | ( | const std::string & | path | ) |
Make directory including parent directories if required.
path | Path of the directory. |
bool basis::os::mkdir | ( | const std::string & | path | ) |
Make directory.
path | Path of the directory. |
string basis::os::readlink | ( | const std::string & | path | ) |
Read value of symbolic link.
[in] | path | Path of symbolic link. |
bool basis::os::rmdir | ( | const std::string & | path | ) |
Remove empty directory.
This function removes an empty directory. If the directory is not empty, it will fail. See rmtree() for a function that also removes the files and recursively the directories within the specified directory.
path | Path of the directory. |