Walk a directory/Non-recursively: Difference between revisions

m
→‎{{header|Sidef}}: modified the code to work with the latest version of Sidef
(Add Rust implementation.)
m (→‎{{header|Sidef}}: modified the code to work with the latest version of Sidef)
Line 1,057:
</pre>
 
<lang ruby>func file_match(Block callback is Block, pattern=/\.txt\z/, path=Dir.cwd) {
path.open(\var dir_h) || return;
dir_h.entries.each { |entry|
2,747

edits