[MarkLogic Dev General] Creating file system directories with XQuery...

Keith Breinholt BreinholtKL at ldschurch.org
Thu Sep 11 16:15:36 PDT 2008


Is it possible to create a directory on the file system from XQuery?

I'm having issues trying to copy/deploy XQuery modules from a zip file and saving it into the modules "database" when the modules database is set to 'filesystem'.

Specifically, the xdmp:save() function does not auto-create directories like it does for a database, and xdmp:directory-create() does not create directories on the file system either.  In fact xdmp:directory-create() doesn't throw an error when it fails...it just returns as if it succeeded.  (Is this a bug?)

If I point my modules to 'filesystem' is there any way of creating a directory or am I stuck calling out to java or C#.

Keith L. Breinholt
ICS - Platform Services
801-240-7161 - w
801-602-7970 - c
"Do what you can, with what you have, where you are." - Theodore Roosevelt

----------------------------------------------------------------------
NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20080911/e838b254/attachment.html


More information about the General mailing list