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
commit 4dd148f07c
Notes: sideshowbarker 2024-07-17 06:20:50 +09:00
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;
};