---
layout: site.njk
title: zul.fs.readDir
---

<h1 id=zul.fs.readDir><a href=#zul.fs.readDir aria-hidden=true>zul.fs.readDir</a></h1>
<p>Iterates, non-recursively, through a directory.</p>

<p>This is a thin abstraction over the standard libraries <code>IterableDir.iterate()</code> behavior. The main benefit of <code>zul.fs.readDir</code> is the ability collect all entries, sorted or not, in a slice.</p>

<h2 id=example><a href=#example aria-hidden=true>Example</a></h2>
{% highlight zig %}
// Parameters:
/