<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>System.Posix.Directory.Traversals</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
more details.</p></div></div><divclass="top"><pclass="src"><aname="v:allDirectoryContents"class="def">allDirectoryContents</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/System-IO.html#t:IO">IO</a> [<ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a>] <ahref="src/System-Posix-Directory-Traversals.html#allDirectoryContents"class="link">Source</a></p><divclass="doc"><p>Get all files from a directory and its subdirectories.</p><p>Upon entering a directory, <code><ahref="System-Posix-Directory-Traversals.html#v:allDirectoryContents">allDirectoryContents</a></code> will get all entries
be accessed on demand.</p><p>Follows symbolic links for the input dir.</p></div></div><divclass="top"><pclass="src"><aname="v:allDirectoryContents-39-"class="def">allDirectoryContents'</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/System-IO.html#t:IO">IO</a> [<ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a>] <ahref="src/System-Posix-Directory-Traversals.html#allDirectoryContents%27"class="link">Source</a></p><divclass="doc"><p>Get all files from a directory and its subdirectories strictly.</p><p>Follows symbolic links for the input dir.</p></div></div><divclass="top"><pclass="src"><aname="v:traverseDirectory"class="def">traverseDirectory</a> :: (s -><ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/System-IO.html#t:IO">IO</a> s) -> s -><ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/System-IO.html#t:IO">IO</a> s <ahref="src/System-Posix-Directory-Traversals.html#traverseDirectory"class="link">Source</a></p><divclass="doc"><p>Recursively apply the <code>action</code> to the parent directory and all
files/subdirectories.</p><p>This function allows for memory-efficient traversals.</p><p>Follows symbolic links for the input dir.</p></div></div><divclass="top"><pclass="src"><aname="v:readDirEnt"class="def">readDirEnt</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-Directory-ByteString.html#t:DirStream">DirStream</a> -><ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/System-IO.html#t:IO">IO</a> (<ahref="System-Posix-Directory-Foreign.html#t:DirType">DirType</a>, <ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a>) <ahref="src/System-Posix-Directory-Traversals.html#readDirEnt"class="link">Source</a></p></div><divclass="top"><pclass="src"><aname="v:packDirStream"class="def">packDirStream</a> :: <ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/Foreign-Ptr.html#t:Ptr">Ptr</a> CDir -><ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-Directory-ByteString.html#t:DirStream">DirStream</a><ahref="src/System-Posix-Directory-Traversals.html#packDirStream"class="link">Source</a></p></div><divclass="top"><pclass="src"><aname="v:unpackDirStream"class="def">unpackDirStream</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-Directory-ByteString.html#t:DirStream">DirStream</a> -><ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/Foreign-Ptr.html#t:Ptr">Ptr</a> CDir <ahref="src/System-Posix-Directory-Traversals.html#unpackDirStream"class="link">Source</a></p></div><divclass="top"><pclass="src"><aname="v:fdOpendir"class="def">fdOpendir</a> :: <ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/System-Posix-Types.html#t:Fd">Fd</a> -><ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-Directory-ByteString.html#t:DirStream">DirStream</a><ahref="src/System-Posix-Directory-Traversals.html#fdOpendir"class="link">Source</a></p><divclass="doc"><p>Binding to <code>fdopendir(3)</code>.</p></div></div><divclass="top"><pclass="src"><aname="v:realpath"class="def">realpath</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.7.0.2/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/unix-2.7.0.1/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a><ahref="src/System-Posix-Directory-Traversals.html#realpath"class="link">Source</a></p><divclass="doc"><p>return the canonicalized absolute pathname</p><p>like canonicalizePath, but uses <code>realpath(3)</code></p></div></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.14.3</p></div></body></html>