Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I6b42941cf9e610168f6ba46a083b316d924640a2
mode_t getMode() const;
uid_t getUid() const;
gid_t getGid() const;
+ ino_t getInode() const;
+ dev_t getDevice() const;
size_t size() const;
return st.st_gid;
}
+ino_t File::getInode() const
+{
+ struct stat st;
+ if (::stat(path.c_str(), &st) != 0) {
+ throw runtime::Exception(runtime::GetSystemErrorMessage());
+ }
+
+ return st.st_ino;
+}
+
+dev_t File::getDevice() const
+{
+ struct stat st;
+ if (::stat(path.c_str(), &st) != 0) {
+ throw runtime::Exception(runtime::GetSystemErrorMessage());
+ }
+
+ return st.st_dev;
+}
+
size_t File::size() const
{
struct stat st;