#include <fsys.h>
Inheritance diagram for ucommon::dir:
Public Member Functions | |
void | close (void) |
Close and release directory object. | |
dir () | |
Construct an unopened directory. | |
dir (char *path) | |
Construct and open a directory path. | |
int | err (void) |
Get last error. | |
void | open (char *path) |
Open a directory path for reading. | |
operator bool () | |
Test if file descriptor is open. | |
bool | operator! () |
Test if file descriptor is closed. | |
ssize_t | read (char *buffer, size_t count) |
Read data from directory. | |
void | reset (void) |
Reset error flag. | |
~dir () | |
Close and release directory. | |
Static Public Member Functions | |
static int | create (char *path, unsigned mode) |
Simple direct method to create a directory. | |
static int | remove (char *path) |
Remove an empty directory. |
Definition at line 716 of file fsys.h.
ucommon::dir::dir | ( | char * | path | ) |
Construct and open a directory path.
path | of directory. |
static int ucommon::dir::create | ( | char * | path, | |
unsigned | mode | |||
) | [static] |
Simple direct method to create a directory.
path | of directory to create. | |
mode | of directory. |
int ucommon::dir::err | ( | void | ) | [inline] |
void ucommon::dir::open | ( | char * | path | ) |
Open a directory path for reading.
path | to open. |
ucommon::dir::operator bool | ( | ) | [inline] |
bool ucommon::dir::operator! | ( | ) | [inline] |
ssize_t ucommon::dir::read | ( | char * | buffer, | |
size_t | count | |||
) |
Read data from directory.
buffer | to read into. | |
count | of bytes to read. |
static int ucommon::dir::remove | ( | char * | path | ) | [static] |
Remove an empty directory.
path | of directory. |