private:
struct Private;
+ bool exists;
FileType type;
FileSize size;
FileSize alloc_size;
std::string owner;
std::string group;
- Stat();
public:
+ Stat();
+
FileType get_type() const { return type; }
bool is_regular() const { return type==REGULAR; }
bool is_directory() const { return type==DIRECTORY; }
const std::string &get_owner() const { return owner; }
const std::string &get_group() const { return group; }
+ operator bool() const { return exists; }
+
/// Returns a Stat object describing a file.
static Stat stat(const Path &);
static Stat lstat(const Path &);