|
| std::string | wibble::sys::fs::readFile (const std::string &file) |
| | Read whole file into memory. Throws exceptions on failure. More...
|
| |
| std::string | wibble::sys::fs::readFile (std::istream &file, const std::string &filename) |
| | Read the entire contents of a file into a string. 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...
|
| |
| void | wibble::sys::fs::writeFileAtomically (const std::string &file, const std::string &data) |
| | Write data to file, replacing existing contents if it already exists. More...
|
| |
| std::string | wibble::sys::fs::findExecutable (const std::string &name) |
| | Compute the absolute path of an executable. 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...
|
| |
| time_t | wibble::sys::fs::timestamp (const std::string &file) |
| | File mtime. More...
|
| |
| time_t | wibble::sys::fs::timestamp (const std::string &file, time_t def) |
| | File mtime (or def if the file does not exist) More...
|
| |
| size_t | wibble::sys::fs::size (const std::string &file) |
| | File size. More...
|
| |
| size_t | wibble::sys::fs::size (const std::string &file, size_t def) |
| | File size (or def if the file does not exist) More...
|
| |
| ino_t | wibble::sys::fs::inode (const std::string &file) |
| | File inode number. More...
|
| |
| ino_t | wibble::sys::fs::inode (const std::string &file, ino_t def) |
| | File inode number (or 0 if the file does not exist) More...
|
| |