MarkLogic 9 Product Documentation
xdmp:filesystem-file-length

xdmp:filesystem-file-length(
   $pathname as xs:string
) as xs:unsignedLong?

Summary

Reads the length of a file from the filesystem. It returns empty sequence if the object named by the pathname does not exist or is not a file.

Parameters
pathname Pathname of the file to be read.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-filesystem-file-length

Example

xdmp:filesystem-file-length("/testdata1/a.jpg")
=> length of /testdata1/a.jpg
Powered by MarkLogic Server | Terms of Use | Privacy Policy