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.
This commit is contained in:
Tim Schumacher 2021-11-03 12:05:23 +01:00 committed by Andreas Kling
commit 80cb44afae
Notes: sideshowbarker 2024-07-18 01:19:52 +09:00
7 changed files with 25 additions and 6 deletions

View file

@ -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);