expath-file:list
Lists the files in a directory.
list($dir as xs:string) ➔ xs:string*
Arguments | |||
| $dir | xs:string | The name or path of the directory |
Result | xs:string* |
list($dir as xs:string, $recursive as xs:boolean) ➔ empty-sequence()
Arguments | |||
| $dir | xs:string | The name or path of the directory |
| $recursive | xs:boolean | Whether or not to recurse into subdirectories |
Result | empty-sequence() |
list($dir as xs:string, $recursive as xs:boolean, $pattern as xs:string) ➔ empty-sequence()
Arguments | |||
| $dir | xs:string | The name or path of the directory |
| $recursive | xs:boolean | Whether or not to recurse into subdirectories |
| $pattern | xs:string | Glob pattern that selected files must match |
Result | empty-sequence() |
Details
Namespace: http://expath.org/ns/file
Notes on the Saxon implementation
Implemented since Saxon 9.5; available whether or not support for XPath 3.0 is enabled