diff options
author | Tim Schumacher <timschumi@gmx.de> | 2021-11-03 12:05:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-10 14:42:49 +0100 |
commit | 80cb44afae2586bb82e286c0a788a5cf7e8f65cd (patch) | |
tree | 042ba522e41eed5db44778a7c71d6eea23da558e /Userland/Libraries/LibCore/File.h | |
parent | 31c634be5a4e9447a8dd48e34161bebbfdb67b2c (diff) | |
download | serenity-80cb44afae2586bb82e286c0a788a5cf7e8f65cd.zip |
Everywhere: Move shared library checks into a common function
While we're at it, unify the various different conditions that are
scattered accross the codebase.
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 34b024b160..6c59972fdd 100644 --- a/Userland/Libraries/LibCore/File.h +++ b/Userland/Libraries/LibCore/File.h @@ -32,6 +32,9 @@ public: bool is_link() const; static bool is_link(String const& filename); + bool looks_like_shared_library() const; + static bool looks_like_shared_library(String const& filename); + static bool exists(String const& filename); static ErrorOr<size_t> size(String const& filename); static bool ensure_parent_directories(String const& path); |