diff options
author | Ariel Don <arieldn@protonmail.com> | 2021-07-11 15:38:55 -0500 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-07-12 19:15:19 +0430 |
commit | 3289b6a88746c264aa4304cf4869ca345f90cc16 (patch) | |
tree | d07a504b5287de4cc66707f13f53cc7b51ff78d4 /Userland/Libraries/LibCore/File.h | |
parent | 8823548a4e12d9c7ad1017e7c31ce965c29ef457 (diff) | |
download | serenity-3289b6a88746c264aa4304cf4869ca345f90cc16.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibCore/File.h')
-rw-r--r-- | Userland/Libraries/LibCore/File.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/File.h b/Userland/Libraries/LibCore/File.h index cb81920d1d..86738aba94 100644 --- a/Userland/Libraries/LibCore/File.h +++ b/Userland/Libraries/LibCore/File.h @@ -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); |