Walk a directory/Recursively: Difference between revisions

no edit summary
(Add Seed7 example)
No edit summary
Line 790:
/usr/share/man/man1/rmdir.1
/usr/share/man/man2/rmdir.2</lang>
 
=={{header|Erlang}}==
Use builtin function filelib:fold_files/5
 
{{out}}
<pre>
10> filelib:fold_files( "/tmp", ".*", true, fun(File, Acc) -> [File|Acc] end, []).
["/tmp/clearcase_inst/local.conf", "/tmp/.X0-lock","/tmp/.cron-check-4000-was-here",
"/tmp/kerneloops.XyN0SP","/tmp/npicagwD7tf"]
11> filelib:fold_files( "/tmp", ".*\.conf", true, fun(File, Acc) -> [File|Acc] end, []).
["/tmp/clearcase_inst/local.conf"]
 
</pre>
 
=={{header|F_Sharp|F#}}==
Anonymous user