Loading TOC...

xdmp.filesystemFileExists

xdmp.filesystemFileExists(
   $pathname as String,
   [$host as String?]
) as Boolean

Summary

Return true if a file exists on a host; otherwise false.

Parameters
$pathname Pathname of the file on a certain host.
$host ID of the host. If omitted, uses the current host ID (for example, the output of a call to xdmp:host).

Required Privileges

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

Example

xdmp.filesystemFileExists("/testdata1/a.jpg");
=> true

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy