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

LibCore: Implement File::is_link()

It was already possible to check if a path was a directory or a device.
Now, it is possible to check if a path is a link in a similar manner.
This commit is contained in:
Ariel Don 2021-07-11 15:38:55 -05:00 committed by Ali Mohammad Pur
parent 8823548a4e
commit 3289b6a887
2 changed files with 19 additions and 0 deletions

View file

@ -30,6 +30,9 @@ public:
bool is_device() const;
static bool is_device(const String& filename);
bool is_link() const;
static bool is_link(const String& filename);
static bool exists(const String& filename);
static bool ensure_parent_directories(const String& path);