mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +00:00
LibCore: Add Core::File is_device() helpers
The helpers check if the file is a block device or a character device via stat and fstat.
This commit is contained in:
parent
4ee23752a5
commit
aff774c8ac
2 changed files with 19 additions and 0 deletions
|
@ -47,6 +47,9 @@ public:
|
|||
bool is_directory() const;
|
||||
static bool is_directory(const String& filename);
|
||||
|
||||
bool is_device() const;
|
||||
static bool is_device(const String& filename);
|
||||
|
||||
static bool exists(const String& filename);
|
||||
static bool ensure_parent_directories(const String& path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue