mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +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:
parent
8823548a4e
commit
3289b6a887
2 changed files with 19 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue