29 namespace basis {
namespace os {
88 std::string
readlink(
const std::string& path);
105 bool mkdir(
const std::string& path);
117 bool makedirs(
const std::string& path);
132 bool rmdir(
const std::string& path);
141 bool rmtree(
const std::string& path);
151 bool emptydir(
const std::string& path);
162 #endif // _BASIS_OS_H bool mkdir(const std::string &path)
Make directory.
std::string getcwd()
Get absolute path of the (current) working directory.
bool rmdir(const std::string &path)
Remove empty directory.
bool emptydir(const std::string &path)
Remove files and directories from directory.
std::string exedir()
Get canonical path to directory containing executable file.
std::string exename()
Get name of executable.
bool makedirs(const std::string &path)
Make directory including parent directories if required.
bool rmtree(const std::string &path)
Remove whole directory tree.
File/directory path related functions.
std::string readlink(const std::string &path)
Read value of symbolic link.
std::string exepath()
Get canonical path of executable file.