#include <wibble/sys/fs.h>
#include <wibble/sys/process.h>
#include <wibble/string.h>
#include <wibble/exception.h>
#include <fstream>
#include <sys/stat.h>
#include <errno.h>
Namespaces | |
| namespace | wibble |
| namespace | wibble::sys |
| namespace | wibble::sys::fs |
Functions | |
| 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. | |
| bool | wibble::sys::fs::access (const std::string &s, int m) |
| access() a filename | |
| std::string | wibble::sys::fs::abspath (const std::string &pathname) |
| Get the absolute path of a file. | |
| void | wibble::sys::fs::mkdirIfMissing (const std::string &dir, mode_t mode) |
| Create the given directory, if it does not already exists. | |
| void | wibble::sys::fs::mkpath (const std::string &dir) |
| Create all the component of the given directory, including the directory itself. | |
| void | wibble::sys::fs::mkFilePath (const std::string &file) |
| Ensure that the path to the given file exists, creating it if it does not. | |
| std::string | wibble::sys::fs::readFile (const std::string &file) |
| Read file into memory. Throws exceptions on failure. | |
| void | wibble::sys::fs::writeFile (const std::string &file, const std::string &data) |
1.5.6