mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +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:
@@ -120,4 +120,9 @@ ErrorOr<void> InodeFile::chmod(Credentials const& credentials, OpenFileDescripti
|
||||
return VirtualFileSystem::the().chmod(credentials, *description.custody(), mode);
|
||||
}
|
||||
|
||||
bool InodeFile::is_regular_file() const
|
||||
{
|
||||
return inode().metadata().is_regular_file();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user