And xdmp:directory does not return directories, it returns documents in a 
directory (a URI that ends in a “/”).

-Danny

From: [email protected] 
[mailto:[email protected]] On Behalf Of Jakob Fix
Sent: Tuesday, May 13, 2014 7:40 AM
To: Florent Georges; MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Directory creation set to manual. ML 
creates anyway?

probably best explained here: 
http://blog.davidcassel.net/2012/05/directory-creation-setting/

cheers,
Jakob.

On Tue, May 13, 2014 at 4:33 PM, Florent Georges 
<[email protected]<mailto:[email protected]>> wrote:
  Hi,

  I have a database with "directory creation" set to "manual".  The
following expression:

    xdmp:directory('/hello/', '1')/document-uri(.)

returns nothing (the empty sequence).  Then I evaluate the following:

    xdmp:document-insert('/hello/world.xml', <hello>World!</hello>)

which succeeds.  I can see the document.  I do not create any dir
manually, so I don't expect MarkLogic to create any automatically
either (since "directory creation" is set to "manual").  Although,
evaluating the following expression again:

    xdmp:directory('/hello/', '1')/document-uri(.)

gives the following result:

    '/hello/world.xml'

  Tested on MarkLogic 7.0-2.3, through QConsole (besides the admin
console for the database creation).

  What did I miss?

  Regards,
--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/


_______________________________________________
General mailing list
[email protected]<mailto:[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