aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-29 14:36:49 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-29 14:36:49 -0400
commit7cd67dd7f3ebf38a2a65c6756090936f9a1b3b03 (patch)
tree6407b1b0836ea0d474b4822ef888cb6c6eaba7ae /environment.c
parente3c1dd2df5a593829a4d5864f8ff7ea4582da55c (diff)
Add file globbing
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 ffc23df1..7f8d71c2 100644
--- a/environment.c
+++ b/environment.c
@@ -302,6 +302,7 @@ env_t *new_compilation_unit(CORD libname)
{"exists", "Path$exists", "func(path:Path -> Bool)"},
{"extension", "Path$extension", "func(path:Path, full=yes -> Text)"},
{"files", "Path$children", "func(path:Path, include_hidden=no -> [Path])"},
+ {"glob", "Path$glob", "func(path:Path -> [Path])"},
{"is_directory", "Path$is_directory", "func(path:Path, follow_symlinks=yes -> Bool)"},
{"is_file", "Path$is_file", "func(path:Path, follow_symlinks=yes -> Bool)"},
{"is_pipe", "Path$is_pipe", "func(path:Path, follow_symlinks=yes -> Bool)"},