<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>12.2. Dictionary</title><link rel="stylesheet" type="text/css" href="ecl.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="The ECL manual"><link rel="up" href="ch12.html" title="Chapter 12. Files"><link rel="prev" href="ch12.html" title="Chapter 12. Files"><link rel="next" href="ch13.html" title="Chapter 13. Streams"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">12.2. Dictionary</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch12.html">Prev</a> </td><th width="60%" align="center">Chapter 12. Files</th><td width="20%" align="right"> <a accesskey="n" href="ch13.html">Next</a></td></tr></table><hr></div><div class="section" title="12.2. Dictionary"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec.ansi.files.dict"></a>12.2. Dictionary</h2></div></div></div><div class="section" title="12.2.1. DIRECTORY"><div class="titlepage"><div><div><h3 class="title"><a name="sec.ansi.files.directory"></a>12.2.1. <code class="function">DIRECTORY</code></h3></div></div></div><p>This function does not have any additional arguments other than the ones described in <a class="xref" href="bi01.html#bib.ANSI">ANSI</a>. To list files and directories, it follows the rules for matching pathnames described in <a class="xref" href="ch11s02.html" title="11.2. Wild pathnames and matching">Section 11.2</a>. In short, you have the following practical examples:</p><div class="table"><a name="id2961100"></a><p class="title"><b>Table 12.1. Examples of using <code class="function">DIRECTORY</code></b></p><div class="table-contents"><table summary="Examples of using DIRECTORY" border="1"><colgroup><col><col></colgroup><thead><tr><th>Argument</th><th>Meaning</th></tr></thead><tbody><tr><td><code class="literal">"/home/jlr/*.*"</code></td><td>List all files in directory <code class="filename">/home/jlr/</code> Note that it lists only files, not directories!</td></tr><tr><td><code class="literal">"/home/jlr/*"</code></td><td>Same as before, but only files without type.</td></tr><tr><td><code class="literal">"/home/jlr/*/"</code></td><td>List all directories contained in <code class="filename">/home/jlr/</code>. Nested directories are not navigated.</td></tr><tr><td><code class="literal">"/home/jlr/**/*.*"</code></td><td>List all files in all directories contained in <code class="filename">/home/jlr/</code>, recursively. Nested directories are navigated.</td></tr></tbody></table></div></div><br class="table-break"></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch12.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch12.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch13.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 12. Files </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 13. Streams</td></tr></table></div></body></html>