aboutsummaryrefslogtreecommitdiff
path: root/include/Utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Utils.hpp')
-rw-r--r--include/Utils.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Utils.hpp b/include/Utils.hpp
index 6943e5e..b18ab8e 100644
--- a/include/Utils.hpp
+++ b/include/Utils.hpp
@@ -25,4 +25,8 @@ namespace gsr {
std::string get_videos_dir();
int create_directory_recursive(char *path);
bool file_get_content(const char *filepath, std::string &file_content);
+
+ // Returns the path to the parent directory (ignoring trailing /)
+ // of "." if there is no parent directory and the directory path is relative
+ std::string get_parent_directory(std::string_view directory);
} \ No newline at end of file