#include <cppdir.h>
Public Types | |
typedef unsigned long | size_type |
enum | Type { UNKNOWN = 0, FIFO = 1, CHAR = 2, DIR = 4, BLOCK = 6, REGULAR = 8 } |
< possible file types. More... | |
Public Methods | |
File (struct dirent d, std::string path) | |
File (std::string path, std::string name) | |
File (std::string path) | |
bool | is_valid () const |
bool | operator! () const |
std::string | get_name () const |
Type | get_type () const |
long | get_inode () const |
std::string | get_path () const |
size_type | get_size () const |
size_type | get_ksize () const |
size_type | get_msize () const |
size_type | get_gsize () const |
size_type | get_date () const |
last change date. More... | |
size_type | get_access_date () const |
last access date. More... | |
Private Methods | |
Type | get_type (const std::string &name) |
Private Attributes | |
std::string | name |
name of the file. More... | |
Type | type |
file type. More... | |
long | inode_number |
inode number. More... | |
bool | valid |
is a valid file? More... | |
std::string | path |
size_type | file_size |
size_type | date |
size_type | access_date |
bool | err |
|
|
|
< possible file types.
|
|
extract file informations from the dirent structure |
|
|
|
|
|
last access date.
|
|
last change date.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inode number.
|
|
name of the file.
|
|
|
|
file type.
|
|
is a valid file?
|