wibble
0.1.28
|
Nicely wrap access to directories. More...
#include <fs.h>
Classes | |
class | const_iterator |
Public Member Functions | |
Directory (const std::string &path) | |
const std::string & | path () const |
Pathname of the directory. | |
bool | valid () |
Check that the directory exists and is a directory. | |
const_iterator | begin () |
Begin iterator. | |
const_iterator | end () const |
End iterator. | |
bool | isdir (const const_iterator &i) const |
Nicely wrap access to directories.
|
inline |
const_iterator wibble::sys::fs::Directory::begin | ( | ) |
Begin iterator.
Referenced by TestFs::directoryIterate(), and wibble::sys::fs::rmtree().
const_iterator wibble::sys::fs::Directory::end | ( | ) | const |
End iterator.
Referenced by TestFs::directoryIterate(), and wibble::sys::fs::rmtree().
bool wibble::sys::fs::Directory::isdir | ( | const const_iterator & | i | ) | const |
References wibble::str::joinpath(), and wibble::sys::fs::stat().
Referenced by wibble::sys::fs::rmtree().
|
inline |
Pathname of the directory.
bool wibble::sys::fs::Directory::valid | ( | ) |
Check that the directory exists and is a directory.
Referenced by TestFs::invalidDirectories().