We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wildcard
1 parent 9be0686 commit 6fc8732Copy full SHA for 6fc8732
src/mezz/base-files.reb
@@ -176,6 +176,20 @@ split-path: func [
176
reduce [dir pos]
177
]
178
179
+wildcard: func [
180
+ "Return block of absolute path files filtered using wildcards."
181
+ path [file!] "Source directory"
182
+ value [any-string!] "Search value with possible * and ? wildcards"
183
+ /local result
184
+][
185
+ result: make block! 8
186
+ path: clean-path/dir path
187
+ foreach file read path [
188
+ if find/match/any file value [ append result path/:file ]
189
+ ]
190
+ new-line/all result true
191
+]
192
+
193
intern: function [
194
"Imports (internalize) words and their values from the lib into the user context."
195
data [block! any-word!] "Word or block of words to be added (deeply)"
0 commit comments