Loading TOC...

xdmp.filesystemFileLength

xdmp.filesystemFileLength(
   $pathname as String
) as String?

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.filesystemFileLength("/testdata1/a.jpg");
=> length of /testdata1/a.jpg

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.