aboutsummaryrefslogtreecommitdiff
path: root/environment.c
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 /environment.c
parentca004e57f2589c852a69033c45c3778036a8def9 (diff)
Add Path:expand_home() as a publicly visible API and bugfix it
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.c b/environment.c
index 2fa0d504..4ffa1dd9 100644
--- a/environment.c
+++ b/environment.c
@@ -310,6 +310,7 @@ env_t *new_compilation_unit(CORD libname)
{"concatenated_with", "Path$concat", "func(a,b:Path -> Path)"},
{"create_directory", "Path$create_directory", "func(path:Path, permissions=Int32(0o755))"},
{"exists", "Path$exists", "func(path:Path -> Bool)"},
+ {"expand_home", "Path$expand_home", "func(path:Path -> Path)"},
{"extension", "Path$extension", "func(path:Path, full=yes -> Text)"},
{"files", "Path$children", "func(path:Path, include_hidden=no -> [Path])"},
{"from_components", "Path$from_components", "func(components:[Text] -> Path)"},