diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-16 19:12:27 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-16 19:12:27 -0400 |
| commit | 39b463ff60ea172d5f538310ec4e26b2a5427fb7 (patch) | |
| tree | 67f548ae3aefdc6548414abf6e482344c6a55584 /src/environment.c | |
| parent | 6ccbd79d4db03ed803e828ccd0664895e96f70a8 (diff) | |
Add Path.current_dir() as exposed method
Diffstat (limited to 'src/environment.c')
| -rw-r--r-- | src/environment.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/environment.c b/src/environment.c index 9605707a..bf012286 100644 --- a/src/environment.c +++ b/src/environment.c @@ -305,6 +305,7 @@ env_t *global_env(bool source_mapping) {"children", "Path$children", "func(path:Path, include_hidden=no -> [Path])"}, {"concatenated_with", "Path$concat", "func(a,b:Path -> Path)"}, {"create_directory", "Path$create_directory", "func(path:Path, permissions=Int32(0o755))"}, + {"current_dir", "Path$current_dir", "func(->Path)"}, {"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)"}, |
