|
std::auto_ptr< struct stat > | wibble::sys::fs::stat (const std::string &pathname) |
| stat() the given file and return the struct stat with the results. More...
|
|
bool | wibble::sys::fs::access (const std::string &s, int m) |
| access() a filename More...
|
|
bool | wibble::sys::fs::exists (const std::string &s) |
| Same as access(s, F_OK);. More...
|
|
std::string | wibble::sys::fs::abspath (const std::string &pathname) |
| Get the absolute path of a file. More...
|
|
void | wibble::sys::fs::mkdirIfMissing (const std::string &dir, mode_t mode) |
| Create the given directory, if it does not already exists. More...
|
|
void | wibble::sys::fs::mkpath (const std::string &dir) |
| Create all the component of the given directory, including the directory itself. More...
|
|
void | wibble::sys::fs::mkFilePath (const std::string &file) |
| Ensure that the path to the given file exists, creating it if it does not. More...
|
|
std::string | wibble::sys::fs::readFile (const std::string &file) |
| Read whole file into memory. Throws exceptions on failure. More...
|
|
void | wibble::sys::fs::writeFile (const std::string &file, const std::string &data) |
| Write data to file, replacing existing contents if it already exists. More...
|
|
bool | wibble::sys::fs::deleteIfExists (const std::string &file) |
| Delete a file if it exists. More...
|
|
void | wibble::sys::fs::renameIfExists (const std::string &src, const std::string &dst) |
| Move src to dst, without raising exception if src does not exist. More...
|
|
void | wibble::sys::fs::unlink (const std::string &fname) |
| Delete the file. More...
|
|
void | wibble::sys::fs::rmdir (const std::string &dirname) |
| Remove the directory using rmdir(2) More...
|
|
void | wibble::sys::fs::rmtree (const std::string &dir) |
| Delete the directory dir and all its content. More...
|
|
bool | wibble::sys::fs::isdir (const std::string &pathname) |
| Returns true if the given pathname is a directory, else false. More...
|
|
bool | wibble::sys::fs::isDirectory (const std::string &pathname) __attribute__((deprecated)) |
| same as isdir, but with a legacy clumsy name More...
|
|