Wrapper class for stat/lstat.
More...
#include <fs/PathInfo.h>
|
(Note that these are not member functions.)
|
std::ostream & | operator<< (std::ostream &str, const PathInfo &obj) |
| Stream output.
|
|
Wrapper class for stat/lstat.
- Note
- All attribute quieries test for isExist(), and return
false
or 0
, if stat was not successful.
-
For convenience PathInfo is available as zypp::PathInfo too.
Definition at line 220 of file PathInfo.h.
◆ Mode
◆ PathInfo() [1/4]
zypp::filesystem::PathInfo::PathInfo |
( |
| ) |
|
◆ PathInfo() [2/4]
zypp::filesystem::PathInfo::PathInfo |
( |
const Pathname & |
path, |
|
|
Mode |
initial = STAT |
|
) |
| |
|
explicit |
◆ PathInfo() [3/4]
zypp::filesystem::PathInfo::PathInfo |
( |
const std::string & |
path, |
|
|
Mode |
initial = STAT |
|
) |
| |
|
explicit |
◆ PathInfo() [4/4]
zypp::filesystem::PathInfo::PathInfo |
( |
const char * |
path, |
|
|
Mode |
initial = STAT |
|
) |
| |
|
explicit |
◆ ~PathInfo()
zypp::filesystem::PathInfo::~PathInfo |
( |
| ) |
|
◆ path()
const Pathname & zypp::filesystem::PathInfo::path |
( |
| ) |
const |
|
inline |
◆ asString()
const std::string & zypp::filesystem::PathInfo::asString |
( |
| ) |
const |
|
inline |
◆ c_str()
const char * zypp::filesystem::PathInfo::c_str |
( |
| ) |
const |
|
inline |
◆ mode()
Mode zypp::filesystem::PathInfo::mode |
( |
| ) |
const |
|
inline |
Return current stat Mode.
Definition at line 252 of file PathInfo.h.
◆ error()
int zypp::filesystem::PathInfo::error |
( |
| ) |
const |
|
inline |
Return error returned from last stat/lstat call.
Definition at line 254 of file PathInfo.h.
◆ setPath()
void zypp::filesystem::PathInfo::setPath |
( |
const Pathname & |
path | ) |
|
|
inline |
◆ setMode()
void zypp::filesystem::PathInfo::setMode |
( |
Mode |
mode | ) |
|
|
inline |
◆ stat() [1/2]
bool zypp::filesystem::PathInfo::stat |
( |
const Pathname & |
path | ) |
|
|
inline |
◆ lstat() [1/2]
bool zypp::filesystem::PathInfo::lstat |
( |
const Pathname & |
path | ) |
|
|
inline |
◆ operator()() [1/2]
bool zypp::filesystem::PathInfo::operator() |
( |
const Pathname & |
path | ) |
|
|
inline |
Restat path using current mode.
Definition at line 266 of file PathInfo.h.
◆ stat() [2/2]
bool zypp::filesystem::PathInfo::stat |
( |
| ) |
|
|
inline |
◆ lstat() [2/2]
bool zypp::filesystem::PathInfo::lstat |
( |
| ) |
|
|
inline |
◆ operator()() [2/2]
bool zypp::filesystem::PathInfo::operator() |
( |
| ) |
|
Restat current path using current mode.
Definition at line 188 of file PathInfo.cc.
◆ isExist()
bool zypp::filesystem::PathInfo::isExist |
( |
| ) |
const |
|
inline |
Return whether valid stat info exists.
That's usg. whether the file exist and you had permission to stat it.
Definition at line 281 of file PathInfo.h.
◆ fileType()
FileType zypp::filesystem::PathInfo::fileType |
( |
| ) |
const |
◆ isFile()
bool zypp::filesystem::PathInfo::isFile |
( |
| ) |
const |
|
inline |
◆ isDir()
bool zypp::filesystem::PathInfo::isDir |
( |
| ) |
const |
|
inline |
◆ isLink()
bool zypp::filesystem::PathInfo::isLink |
( |
| ) |
const |
|
inline |
◆ isChr()
bool zypp::filesystem::PathInfo::isChr |
( |
| ) |
const |
|
inline |
◆ isBlk()
bool zypp::filesystem::PathInfo::isBlk |
( |
| ) |
const |
|
inline |
◆ isFifo()
bool zypp::filesystem::PathInfo::isFifo |
( |
| ) |
const |
|
inline |
◆ isSock()
bool zypp::filesystem::PathInfo::isSock |
( |
| ) |
const |
|
inline |
◆ isRUsr()
bool zypp::filesystem::PathInfo::isRUsr |
( |
| ) |
const |
|
inline |
◆ isWUsr()
bool zypp::filesystem::PathInfo::isWUsr |
( |
| ) |
const |
|
inline |
◆ isXUsr()
bool zypp::filesystem::PathInfo::isXUsr |
( |
| ) |
const |
|
inline |
◆ isR()
bool zypp::filesystem::PathInfo::isR |
( |
| ) |
const |
|
inline |
◆ isW()
bool zypp::filesystem::PathInfo::isW |
( |
| ) |
const |
|
inline |
◆ isX()
bool zypp::filesystem::PathInfo::isX |
( |
| ) |
const |
|
inline |
◆ isRGrp()
bool zypp::filesystem::PathInfo::isRGrp |
( |
| ) |
const |
|
inline |
◆ isWGrp()
bool zypp::filesystem::PathInfo::isWGrp |
( |
| ) |
const |
|
inline |
◆ isXGrp()
bool zypp::filesystem::PathInfo::isXGrp |
( |
| ) |
const |
|
inline |
◆ isROth()
bool zypp::filesystem::PathInfo::isROth |
( |
| ) |
const |
|
inline |
◆ isWOth()
bool zypp::filesystem::PathInfo::isWOth |
( |
| ) |
const |
|
inline |
◆ isXOth()
bool zypp::filesystem::PathInfo::isXOth |
( |
| ) |
const |
|
inline |
◆ isUid()
bool zypp::filesystem::PathInfo::isUid |
( |
| ) |
const |
|
inline |
◆ isGid()
bool zypp::filesystem::PathInfo::isGid |
( |
| ) |
const |
|
inline |
◆ isVtx()
bool zypp::filesystem::PathInfo::isVtx |
( |
| ) |
const |
|
inline |
◆ isPerm()
bool zypp::filesystem::PathInfo::isPerm |
( |
mode_t |
m | ) |
const |
|
inline |
◆ hasPerm()
bool zypp::filesystem::PathInfo::hasPerm |
( |
mode_t |
m | ) |
const |
|
inline |
◆ uperm()
mode_t zypp::filesystem::PathInfo::uperm |
( |
| ) |
const |
|
inline |
◆ gperm()
mode_t zypp::filesystem::PathInfo::gperm |
( |
| ) |
const |
|
inline |
◆ operm()
mode_t zypp::filesystem::PathInfo::operm |
( |
| ) |
const |
|
inline |
◆ perm()
mode_t zypp::filesystem::PathInfo::perm |
( |
| ) |
const |
|
inline |
◆ st_mode()
mode_t zypp::filesystem::PathInfo::st_mode |
( |
| ) |
const |
|
inline |
◆ asStatMode()
StatMode zypp::filesystem::PathInfo::asStatMode |
( |
| ) |
const |
|
inline |
◆ nlink()
nlink_t zypp::filesystem::PathInfo::nlink |
( |
| ) |
const |
|
inline |
◆ owner()
uid_t zypp::filesystem::PathInfo::owner |
( |
| ) |
const |
|
inline |
◆ group()
gid_t zypp::filesystem::PathInfo::group |
( |
| ) |
const |
|
inline |
◆ userMay()
mode_t zypp::filesystem::PathInfo::userMay |
( |
| ) |
const |
Returns current users permission ([0-7]
)
Definition at line 224 of file PathInfo.cc.
◆ userMayR()
bool zypp::filesystem::PathInfo::userMayR |
( |
| ) |
const |
|
inline |
◆ userMayW()
bool zypp::filesystem::PathInfo::userMayW |
( |
| ) |
const |
|
inline |
◆ userMayX()
bool zypp::filesystem::PathInfo::userMayX |
( |
| ) |
const |
|
inline |
◆ userMayRW()
bool zypp::filesystem::PathInfo::userMayRW |
( |
| ) |
const |
|
inline |
◆ userMayRX()
bool zypp::filesystem::PathInfo::userMayRX |
( |
| ) |
const |
|
inline |
◆ userMayWX()
bool zypp::filesystem::PathInfo::userMayWX |
( |
| ) |
const |
|
inline |
◆ userMayRWX()
bool zypp::filesystem::PathInfo::userMayRWX |
( |
| ) |
const |
|
inline |
◆ ino()
ino_t zypp::filesystem::PathInfo::ino |
( |
| ) |
const |
|
inline |
◆ dev()
dev_t zypp::filesystem::PathInfo::dev |
( |
| ) |
const |
|
inline |
◆ rdev()
dev_t zypp::filesystem::PathInfo::rdev |
( |
| ) |
const |
|
inline |
◆ devMajor()
unsigned int zypp::filesystem::PathInfo::devMajor |
( |
| ) |
const |
◆ devMinor()
unsigned int zypp::filesystem::PathInfo::devMinor |
( |
| ) |
const |
◆ size()
off_t zypp::filesystem::PathInfo::size |
( |
| ) |
const |
|
inline |
◆ blksize()
unsigned long zypp::filesystem::PathInfo::blksize |
( |
| ) |
const |
|
inline |
◆ blocks()
unsigned long zypp::filesystem::PathInfo::blocks |
( |
| ) |
const |
|
inline |
◆ atime()
time_t zypp::filesystem::PathInfo::atime |
( |
| ) |
const |
|
inline |
◆ mtime()
time_t zypp::filesystem::PathInfo::mtime |
( |
| ) |
const |
|
inline |
◆ ctime()
time_t zypp::filesystem::PathInfo::ctime |
( |
| ) |
const |
|
inline |
◆ operator<< [1/2]
std::ostream & operator<< |
( |
std::ostream & |
str, |
|
|
const PathInfo & |
obj |
|
) |
| |
|
friend |
◆ operator<<() [2/2]
std::ostream & operator<< |
( |
std::ostream & |
str, |
|
|
const PathInfo & |
obj |
|
) |
| |
|
related |
◆ path_t
Pathname zypp::filesystem::PathInfo::path_t |
|
private |
◆ statbuf_C
struct stat zypp::filesystem::PathInfo::statbuf_C |
|
private |
◆ mode_e
Mode zypp::filesystem::PathInfo::mode_e |
|
private |
◆ error_i
int zypp::filesystem::PathInfo::error_i |
|
private |
The documentation for this class was generated from the following files: