From 80cb44afae2586bb82e286c0a788a5cf7e8f65cd Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Wed, 3 Nov 2021 12:05:23 +0100 Subject: 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. --- Userland/Libraries/LibCore/File.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Userland/Libraries/LibCore/File.h') 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(String const& filename); static bool ensure_parent_directories(String const& path); -- cgit v1.2.3