1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:17:44 +00:00

LibCore: Add fd overload of File::is_directory and File::is_device

This commit is contained in:
Lucas CHOLLET 2022-12-07 23:37:49 +01:00 committed by Linus Groh
parent 9ae97c8cb1
commit cfb0e1bdb2
2 changed files with 20 additions and 8 deletions

View file

@ -33,9 +33,11 @@ public:
bool is_directory() const;
static bool is_directory(DeprecatedString const& filename);
static bool is_directory(int fd);
bool is_device() const;
static bool is_device(DeprecatedString const& filename);
static bool is_device(int fd);
bool is_block_device() const;
static bool is_block_device(DeprecatedString const& filename);
bool is_char_device() const;