<!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><scriptsrc="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
more details.</p></div></div><divclass="top"><pclass="src"><aid="v:allDirectoryContents"class="def">allDirectoryContents</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> [<ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a>] <ahref="src/System-Posix-Directory-Traversals.html#allDirectoryContents"class="link">Source</a><ahref="#v:allDirectoryContents"class="selflink">#</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"><aid="v:allDirectoryContents-39-"class="def">allDirectoryContents'</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> [<ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a>] <ahref="src/System-Posix-Directory-Traversals.html#allDirectoryContents%27"class="link">Source</a><ahref="#v:allDirectoryContents-39-"class="selflink">#</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"><aid="v:traverseDirectory"class="def">traverseDirectory</a> :: (s -><ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> s) -> s -><ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> s <ahref="src/System-Posix-Directory-Traversals.html#traverseDirectory"class="link">Source</a><ahref="#v:traverseDirectory"class="selflink">#</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"><aid="v:readDirEnt"class="def">readDirEnt</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-Directory-ByteString.html#t:DirStream">DirStream</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/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.2.0/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a>) <ahref="src/System-Posix-Directory-Traversals.html#readDirEnt"class="link">Source</a><ahref="#v:readDirEnt"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:packDirStream"class="def">packDirStream</a> :: <ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/Foreign-Ptr.html#t:Ptr">Ptr</a> CDir -><ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-Directory-ByteString.html#t:DirStream">DirStream</a><ahref="src/System-Posix-Directory-Traversals.html#packDirStream"class="link">Source</a><ahref="#v:packDirStream"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:unpackDirStream"class="def">unpackDirStream</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-Directory-ByteString.html#t:DirStream">DirStream</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/Foreign-Ptr.html#t:Ptr">Ptr</a> CDir <ahref="src/System-Posix-Directory-Traversals.html#unpackDirStream"class="link">Source</a><ahref="#v:unpackDirStream"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:fdOpendir"class="def">fdOpendir</a> :: <ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-Posix-Types.html#t:Fd">Fd</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-Directory-ByteString.html#t:DirStream">DirStream</a><ahref="src/System-Posix-Directory-Traversals.html#fdOpendir"class="link">Source</a><ahref="#v:fdOpendir"class="selflink">#</a></p><divclass="doc"><p>Binding to <code>fdopendir(3)</code>.</p></div></div><divclass="top"><pclass="src"><aid="v:realpath"class="def">realpath</a> :: <ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/unix-2.7.2.0/docs/System-Posix-ByteString-FilePath.html#t:RawFilePath">RawFilePath</a><ahref="src/System-Posix-Directory-Traversals.html#realpath"class="link">Source</a><ahref="#v:realpath"class="selflink">#</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.17.2</p></div></body></html>