1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

GDirectoryModel: Add "modification time" column.

Fixes #373.
This commit is contained in:
Andreas Kling 2019-07-31 07:09:35 +02:00
parent 10b4c92e21
commit 993ab84a0d
2 changed files with 25 additions and 1 deletions

View file

@ -19,6 +19,7 @@ public:
Owner,
Group,
Permissions,
ModificationTime,
Inode,
__Count,
};
@ -43,6 +44,7 @@ public:
uid_t uid { 0 };
uid_t gid { 0 };
ino_t inode { 0 };
time_t mtime { 0 };
mutable RefPtr<GraphicsBitmap> thumbnail;
bool is_directory() const { return S_ISDIR(mode); }
bool is_executable() const { return mode & S_IXUSR; }