#ifndef MSP_FS_STAT_H_
#define MSP_FS_STAT_H_
+#include <cstdint>
#include <string>
-#include <msp/core/inttypes.h>
#include <msp/time/timestamp.h>
#include "path.h"
SYMLINK
};
-typedef UInt64 FileSize;
+typedef uint64_t FileSize;
/**
Holds file information.
std::string group;
};
- bool exists;
- FileType type;
- FileSize size;
- FileSize alloc_size;
+ bool exists = false;
+ FileType type = UNKNOWN;
+ FileSize size = 0;
+ FileSize alloc_size = 0;
Time::TimeStamp mtime;
mutable OwnerInfo owner_info;
- Private *priv;
+ Private *priv = nullptr;
public:
- Stat();
+ Stat() = default;
Stat(const Stat &);
Stat &operator=(const Stat &);
~Stat();