Sorry I was mistaken on the second one. xdmp:uri-is-file:  "Returns true if
a given URI refers to a file which exists on the current application
server. *Only returns true if the modules on the App Server is set to file
system;* always returns false if you are using a database for your modules"

-Ryan


On Tue, Aug 20, 2013 at 10:25 AM, Ryan Dew <[email protected]> wrote:

> You might want to checkout the following
>
> Content DB:
> http://docs.marklogic.com/fn:doc-available
>
> Modules DB:
> http://docs.marklogic.com/xdmp:uri-is-file
>
> -Ryan Dew
>
>
> On Tue, Aug 20, 2013 at 10:04 AM, Singh, Gurbeer <
> [email protected]> wrote:
>
>>   I need check, my file exists in ML data base or not , I don’t want to
>> load the fn:doc() and check.****
>>
>> ** **
>>
>> xdmp:filesystem-file-exists works only filesystem. It’s not working for
>> my webdav folder created for my ML database.****
>>
>> ** **
>>
>> ** **
>>
>> let
>> $path:="/ms/user/g/gurbeers/FPOL_ML_XQY/Policy/MLPortal/services/saveDocAndMetaN.xqy"
>> ****
>>
>> return****
>>
>> xdmp:filesystem-file-exists($oldpath) (:true:)****
>>
>> ** **
>>
>> ** **
>>
>> let $path:="/policies/otherDocs/1702386.xml"****
>>
>> return****
>>
>> xdmp:filesystem-file-exists($path) (:false:)****
>>
>> ** **
>>
>> ** **
>>
>> ~Gurbeer****
>>
>>
>> ------------------------------
>>
>> NOTICE: Morgan Stanley is not acting as a municipal advisor and the
>> opinions or views contained herein are not intended to be, and do not
>> constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall
>> Street Reform and Consumer Protection Act. If you have received this
>> communication in error, please destroy all electronic and paper copies and
>> notify the sender immediately. Mistransmission is not intended to waive
>> confidentiality or privilege. Morgan Stanley reserves the right, to the
>> extent permitted under applicable law, to monitor electronic
>> communications. This message is subject to terms available at the following
>> link: http://www.morganstanley.com/disclaimers If you cannot access
>> these links, please notify us by reply message and we will send the
>> contents to you. By messaging with Morgan Stanley you consent to the
>> foregoing.
>>
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to