|
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.
| wibble::sys::fs::Directory::Directory | ( | const std::string & | path | ) | [inline] |
Begin iterator.
Referenced by TestFs::directoryIterate(), and wibble::sys::fs::rmtree().
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().
| const std::string& wibble::sys::fs::Directory::path | ( | ) | const [inline] |
Pathname of the directory.
| bool wibble::sys::fs::Directory::valid | ( | ) |
Check that the directory exists and is a directory.
Referenced by TestFs::invalidDirectories().
1.7.6.1