file:list
Lists all files and directories in a given directory.
list($dir as xs:string, $recursive as xs:boolean?:=false(), $pattern as xs:string?:=()) ➔ xs:string*
Arguments | ||||
| $dir | xs:string | Path to the directory | |
| $recursive | xs:boolean? | := false() | Determines whether the operation should recurse down though the filesystem tree |
| $pattern | xs:string? | := () | A glob pattern to match/filter file names |
Result | xs:string* | |||
Namespace
http://expath.org/ns/file
Links to specifications
Saxon availability
Available in XPath 2.0 and later versions. Implemented since Saxon 9.5. Requires Saxon-PE or Saxon-EE. Available for all platforms.