26 #if defined(_WIN32) || defined(_WIN64) 28 typedef unsigned short int nlink_t;
31 typedef unsigned int uid_t;
34 typedef unsigned int gid_t;
37 typedef unsigned long int blkcnt_t;
79 #if defined(_WIN32) || defined(_WIN64) 81 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 84 nlink_t
nlinks()
const {
return 0;}
85 uid_t
uid()
const {
return 0;}
86 gid_t
gid()
const {
return 0;}
90 blkcnt_t
blocks()
const {
return 0;}
93 bool isLink()
const {
return false;}
112 bool read(
const string & fname,
bool followlink=
false);
unsigned int optblocksize() const
Definition: fileinfo.h:103
time_t atime() const
Definition: fileinfo.h:74
uid_t uid() const
Definition: fileinfo.h:97
FileInfo()
Definition: fileinfo.h:69
nlink_t nlinks() const
Definition: fileinfo.h:96
#define S_ISDIR(mode)
Definition: windirent.h:188
ino_t inode() const
Definition: fileinfo.h:77
blkcnt_t blocks() const
Definition: fileinfo.h:102
bool read(const string &fname, bool followlink=false)
Definition: fileinfo.cpp:24
mode_t mode() const
Definition: fileinfo.h:95
gid_t gid() const
Definition: fileinfo.h:98
bool isValid()
Definition: fileinfo.h:110
bool mValid
Definition: fileinfo.h:116
bool isFile() const
Definition: fileinfo.h:108
time_t mtime() const
Definition: fileinfo.h:75
time_t ctime() const
Definition: fileinfo.h:76
bool isDir() const
Definition: fileinfo.h:107
off_t size() const
Definition: fileinfo.h:73
~FileInfo()
Definition: fileinfo.h:71
struct stat mStat
Definition: fileinfo.h:115
dev_t device() const
Definition: fileinfo.h:78
#define S_ISLNK(mode)
Definition: windirent.h:194
bool isLink() const
Definition: fileinfo.h:105
Represents Fileattributes.
Definition: fileinfo.h:64