Walk a directory/Recursively: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring the hard way, phix/basics) |
(Added a general comment.) |
||
Line 1,558: | Line 1,558: | ||
=={{header|Nim}}== |
=={{header|Nim}}== |
||
The “os” standard module provides an iterator to walk recursively a directory. The iterator allows some filtering about the kind of entry to consider: real files (default), symbolic links to files, directories, symbolic links to directories. It doesn’t allow to specify a pattern, so filtering on name should be done using another mechanism (for instance, regular expressions). |
|||
<lang nim>import os, re |
<lang nim>import os, re |
||