1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

Kernel: Add File::is_regular_file()

This makes it easy and expressive to check if a File is a regular file.
This commit is contained in:
Andreas Kling 2022-11-27 23:50:28 +01:00
parent c8ff2184bd
commit 4dd148f07c
3 changed files with 9 additions and 0 deletions

View file

@ -49,6 +49,8 @@ public:
virtual bool is_inode() const override { return true; }
private:
virtual bool is_regular_file() const override;
explicit InodeFile(NonnullLockRefPtr<Inode>&&);
NonnullLockRefPtr<Inode> m_inode;
};