Changes

Jump to navigation Jump to search
537 bytes added ,  17:35, 20 March 2014
| '''Summary'''
|Lists all files and directories found in the specified {{Code|$dir}}. The returned paths are relative to the provided path.<br />The optional parameter {{Code|$recursive}} specifies whether sub-directories will be traversed, too.<br />The optional parameter {{Code|$pattern}} defines a file name pattern in the [http://en.wikipedia.org/wiki/Glob_(programming) glob syntax]. If present, only those files and directories are returned that correspond to the pattern. Several patterns can be separated with a comma ({{Code|,}}).<br />
|-
| '''Errors'''
|{{Error|not-found|#Errors}} the specified file does not exist.<br />{{Error|no-dir|#Errors}} the specified path does not point to a directory.<br />{{Error|io-error|#Errors}} the operation fails for some other reason.<br />
|}
 
==file:children==
 
{{Mark|Introduced with Version 8.0:}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|file:children|$dir as xs:string|xs:string*}}
|-
| '''Summary'''
|This convenience function lists the full paths to all children found in the specified {{Code|$dir}}.<br />
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu