aboutsummaryrefslogtreecommitdiff
path: root/stdlib/paths.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-17 18:59:03 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-17 18:59:03 -0400
commit94993c5f113b27083e586c7620eb896fe750c6d1 (patch)
tree7dbaa8c74a5664dd6824d3c20ce388410011e2ee /stdlib/paths.h
parentca004e57f2589c852a69033c45c3778036a8def9 (diff)
Add Path:expand_home() as a publicly visible API and bugfix it
Diffstat (limited to 'stdlib/paths.h')
-rw-r--r--stdlib/paths.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/paths.h b/stdlib/paths.h
index b971cdf5..f65bd3ca 100644
--- a/stdlib/paths.h
+++ b/stdlib/paths.h
@@ -16,8 +16,8 @@ const char *Path$as_c_string(Path_t path);
Path_t Path$_concat(int n, Path_t items[n]);
#define Path$concat(...) Path$_concat((int)sizeof((Path_t[]){__VA_ARGS__})/sizeof(Path_t), ((Path_t[]){__VA_ARGS__}))
Path_t Path$resolved(Path_t path, Path_t relative_to);
-Path_t Path$relative(Path_t path, Path_t relative_to);
Path_t Path$relative_to(Path_t path, Path_t relative_to);
+Path_t Path$expand_home(Path_t path);
bool Path$exists(Path_t path);
bool Path$is_file(Path_t path, bool follow_symlinks);
bool Path$is_directory(Path_t path, bool follow_symlinks);