|-
| valign='top' | '''Rules'''
|This function lists all files and directories found in the directory that is specified by <code>$path</code>. The returned paths are relative to the provided path.<br />The optional parameter <code>$recursive</code> specifies whether the sub-directories are to be recursed as well.<br />The optional parameter <code>$pattern</code> defines a file name patternin the [http://en.wikipedia.org/wiki/Glob_(programming) glob syntax]]. If present, only those files and directories are returned that correspond to the pattern. A pattern may contain asterisks (<code>*</code>) to match zero or more characters, and question marks (<code>?</code>) to match single characters. Several patterns can be separated with a comma (<code>,</code>).<br />
|-
| valign='top' | '''Errors'''