/dir dir &amp;opt array)

Iterate over files and subdirectories in a directory. Returns an array of paths parts, with only the file name or directory name and no prefix.</pre><a href="https://janetdocs.org/os/dir">Community Examples</a></div><hr><div class="binding"><span id="os/environ" class="binding-sym">os/environ</span> <span class="binding-type">cfunction</span> <span class="binding-type"><a href="https://github.com/janet-lang/janet/blob/0d9e999/src/core/os.c#L1484">source</a></span> <pre class="bindi