Namespaces | Functions
os.cxx File Reference

Operating system dependent functions. More...

#include <basis/config.h>
#include <basis/except.h>
#include <vector>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
#include <basis/os.h>
#include <basis/os/path.h>
+ Include dependency graph for os.cxx:

Go to the source code of this file.

Namespaces

 basis
 
 basis::os
 

Functions

bool basis::os::emptydir (const std::string &path)
 Remove files and directories from directory. More...
 
std::string basis::os::exedir ()
 Get canonical path to directory containing executable file. More...
 
std::string basis::os::exename ()
 Get name of executable. More...
 
std::string basis::os::exepath ()
 Get canonical path of executable file. More...
 
std::string basis::os::getcwd ()
 Get absolute path of the (current) working directory. More...
 
bool basis::os::makedirs (const std::string &path)
 Make directory including parent directories if required. More...
 
bool basis::os::mkdir (const std::string &path)
 Make directory. More...
 
std::string basis::os::readlink (const std::string &path)
 Read value of symbolic link. More...
 
bool basis::os::rmdir (const std::string &path)
 Remove empty directory. More...
 
bool basis::os::rmtree (const std::string &path)
 Remove whole directory tree. More...
 

Detailed Description

Operating system dependent functions.

Definition in file os.cxx.