aboutsummaryrefslogtreecommitdiff
path: root/include/Utils.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-25 13:39:33 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-25 13:39:33 +0200
commit3d5e8baa5f66547f1250950b10bd4108e30af423 (patch)
tree890101088903316749e2843829eb3aa6b67cd3ce /include/Utils.hpp
parentb8e6949dfb8a88c832e82f8b7e853fe0ed462da0 (diff)
File chooser navigation
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