file:size
Returns the size of a file or directory.
size($path as xs:string, $recursive as xs:boolean?:=false()) ➔ xs:integer
Arguments | ||||
| $path | xs:string | Path to file/directory | |
| $recursive | xs:boolean? | := false() | Determines whether the operation should recurse down though the filesystem tree. (New in EXPath 4.0. Not yet implemented in Saxon.) |
Result | xs:integer | |||
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.