Your user/role will also need the 'xdmp:filesystem-directory-create' privilege.
Keith L. Breinholt Missionary & Public Affairs Portfolio [email protected]<mailto:[email protected]> From: [email protected] [mailto:[email protected]] On Behalf Of Lee, David Sent: Wednesday, January 20, 2010 4:09 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] RE: filesystem create-directory from withinML AWESOME ! From: [email protected] [mailto:[email protected]] On Behalf Of Keith L. Breinholt Sent: Wednesday, January 20, 2010 6:00 PM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] RE: filesystem create-directory from withinML The function you are looking for exists but is undocumented and unsupported: xdmp:filesystem-directory-create( $pathname as xs:string, $options as node()? ) as empty-sequence() Suggested usage: xdmp:filesystem-directory-create( $dir, <options xmlns="xdmp:filesystem-directory-create"> <create-parents>true</create-parents> </options> ) Hope that helps. Keith L. Breinholt Missionary & Public Affairs Portfolio [email protected]<mailto:[email protected]> From: [email protected] [mailto:[email protected]] On Behalf Of Lee, David Sent: Wednesday, January 20, 2010 3:39 PM To: [email protected] Subject: [MarkLogic Dev General] filesystem create-directory from within ML Is there a filesystem create-directory function within ML ? I cant find one. I'm trying to write a "Export directory tree to filesystem" function and the xdmp:save() fails if the target directory doesn't exist. This is OK if I were outputting a simple list of documents in a single directory but if I want to save a directory *tree* I cant figure out how to do it. Of course I can write a java program to prepare a list of directories then make them ... but it would be really useful to be able to do this within the ML app. Any suggestions ? ---------------------------------------- David A. Lee Senior Principal Software Engineer Epocrates, Inc. [email protected]<mailto:[email protected]> 812-482-5224 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.
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
