expath-file:size

Returns the size of a file in bytes.

size($file as xs:string) ➔ xs:integer

Arguments

 

$file

xs:string

The file name

Result

xs:integer

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