mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:57:34 +00:00
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:
parent
31c634be5a
commit
80cb44afae
7 changed files with 25 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue