filestatus Class Reference
Retrieve information about a file or directory.
More...
#include <fs.h>
List of all members.
Detailed Description
Retrieve information about a file or directory.
Definition at line 122 of file fs.h.
Member Typedef Documentation
Definition at line 154 of file fs.h.
Definition at line 159 of file fs.h.
Definition at line 153 of file fs.h.
Definition at line 155 of file fs.h.
Definition at line 156 of file fs.h.
Definition at line 152 of file fs.h.
Definition at line 157 of file fs.h.
Definition at line 160 of file fs.h.
Definition at line 161 of file fs.h.
Definition at line 158 of file fs.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 125 of file fs.h.
Constructor & Destructor Documentation
filestatus::filestatus |
( |
|
) |
|
C'tor.
Definition at line 802 of file fs.cc.
filestatus::filestatus |
( |
const std::string |
a_path |
) |
|
filestatus::~filestatus |
( |
|
) |
|
D'tor.
Definition at line 813 of file fs.cc.
Member Function Documentation
Return the number of blocks used to store this file.
Definition at line 1032 of file fs.cc.
References m_stat.
Return the blocksize used to store this file.
Definition at line 1022 of file fs.cc.
References m_stat.
void filestatus::clear |
( |
void |
|
) |
|
Return the file's device.
Definition at line 952 of file fs.cc.
References m_stat.
If the pathname is a special file, return it's major number.
Definition at line 964 of file fs.cc.
References m_major.
If the pathname is a special file, return it's minor number.
Definition at line 970 of file fs.cc.
References m_minor.
Return the file's owner's GID.
Definition at line 988 of file fs.cc.
References m_stat.
const bool filestatus::gid_is_found |
( |
void |
|
) |
const |
If the file's owner's GID is found in the passwd file, return true.
Definition at line 1048 of file fs.cc.
References m_gidfound.
const std::string filestatus::gid_name |
( |
void |
|
) |
const |
Return the file's owner's group name (from UID).
Definition at line 1060 of file fs.cc.
References m_gname.
Return the last access time of this file.
Definition at line 1004 of file fs.cc.
References m_stat.
Return the last modification time of this file.
Definition at line 1010 of file fs.cc.
References m_stat.
Return the last status change time of this file.
Definition at line 1016 of file fs.cc.
References m_stat.
const std::string filestatus::link |
( |
void |
|
) |
const |
Return the file mode.
Definition at line 940 of file fs.cc.
References m_stat.
Return the number of links to this file.
Definition at line 976 of file fs.cc.
References m_stat.
const std::string filestatus::path |
( |
void |
|
) |
const |
void filestatus::path |
( |
const std::string |
a_path |
) |
|
Retrieve information about a pathname.
Definition at line 818 of file fs.cc.
References clear(), ERROR, m_gidfound, m_gname, m_link, m_major, m_minor, m_path, m_stat, m_uidfound, m_uname, reform_path(), and TRY_nomem.
Referenced by configuration_manager::check(), global_parser::parse_rsync_local_path(), global_parser::parse_vault(), directory::path(), subdirectory::path(), rm_recursive(), test_filestatus(), test_inodes(), test_mk_relative_symlink(), and test_mk_symlink().
Return the file's raw device.
Definition at line 958 of file fs.cc.
References m_stat.
Return the file's owner's UID.
Definition at line 982 of file fs.cc.
References m_stat.
const bool filestatus::uid_is_found |
( |
void |
|
) |
const |
If the file's owner's UID is found in the passwd file, return true.
Definition at line 1042 of file fs.cc.
References m_uidfound.
const std::string filestatus::uid_name |
( |
void |
|
) |
const |
Return the file's owner's user name (from UID).
Definition at line 1054 of file fs.cc.
References m_uname.
Member Data Documentation
Definition at line 258 of file fs.h.
Referenced by blocks(), blocksize(), clear(), dev(), gid(), inode(), last_access_time(), last_modification_time(), last_status_change_time(), mode(), num_links(), path(), rdev(), size(), type(), and uid().
The documentation for this class was generated from the following files: