mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibCore: Add File::is_{block,char}_device() helpers
The existing File::is_device() helpers don't distinguish between block and char devices. This commit adds File::is_block_device() and File::is_char_device() helpers which are more specific.
This commit is contained in:
parent
380ce43afc
commit
7b8088c78d
2 changed files with 36 additions and 0 deletions
|
@ -28,6 +28,10 @@ public:
|
|||
|
||||
bool is_device() const;
|
||||
static bool is_device(String const& filename);
|
||||
bool is_block_device() const;
|
||||
static bool is_block_device(String const& filename);
|
||||
bool is_char_device() const;
|
||||
static bool is_char_device(String const& filename);
|
||||
|
||||
bool is_link() const;
|
||||
static bool is_link(String const& filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue