summaryrefslogtreecommitdiffstats
path: root/src/filesystem.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-04 16:07:48 +0200
committerDavid Robillard <d@drobilla.net>2020-08-06 17:34:19 +0200
commit18c8af55e63653c74d58137cd12434f1213f4230 (patch)
tree902c20f451ab01b30f91d218a9a291fb3190b085 /src/filesystem.h
parentdd521d78d1959d694e6e5a565a37e9693756cb00 (diff)
downloadlilv-18c8af55e63653c74d58137cd12434f1213f4230.tar.gz
lilv-18c8af55e63653c74d58137cd12434f1213f4230.tar.bz2
lilv-18c8af55e63653c74d58137cd12434f1213f4230.zip
Rename some filename utilities for clarity
Loosely inspired by Python and the std::filesystem API.
Diffstat (limited to 'src/filesystem.h')
-rw-r--r--src/filesystem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filesystem.h b/src/filesystem.h
index de06214..eb00e60 100644
--- a/src/filesystem.h
+++ b/src/filesystem.h
@@ -50,7 +50,7 @@ lilv_path_relative_to(const char* path, const char* base);
Returns the root path if `path` is the root path.
*/
char*
-lilv_dirname(const char* path);
+lilv_path_parent(const char* path);
/// Join path `a` and path `b` with a single directory separator between them
char*
@@ -67,7 +67,7 @@ lilv_dir_path(const char* path);
directory separators.
*/
char*
-lilv_realpath(const char* path);
+lilv_path_canonical(const char* path);
/// Return true iff `path` points to an existing file system entry
bool
@@ -122,7 +122,7 @@ lilv_dir_for_each(const char* path,
@return Zero on success, or an `errno` error code.
*/
int
-lilv_mkdir_p(const char* dir_path);
+lilv_create_directories(const char* dir_path);
/// Return true iff the given paths point to files with identical contents
bool