diff options
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -19,6 +19,10 @@ std::string dynamic_lib_name(const std::filesystem::path& p); // removes initial "./" std::filesystem::path simplified_path(const std::filesystem::path& p); +// path of lib, i.e. parent +// e.g. libs/libabc.so.1.0.0 -> libs +// e.g. libabc.so -> . +std::filesystem::path lib_path(const std::filesystem::path& p); std::string env_value(const std::string& key); bool is_executable_command(const std::string& file); |