Hi David,

> My 'understanding' (from reading the ML docs) is that there
> is no directory "/foo/bar/"
> Since no directories were created, none exist.

The trick is that the xdmp:directory function doesn't tell anything about the 
directory itself, but whether there exist documents that live underneath it, 
regardless whether the directory is explicit of implicit. Your code only checks 
for explicitly created directories.

The code of Mike will fail to notice explicit directories that are empty 
though, so perhaps best to combine both methods..

Kind regards,
Geert


drs. G.P.H. (Geert) Josten
Consultant

Daidalos BV
Hoekeindsehof 1-4
2665 JZ Bleiswijk

T +31 (0)10 850 1200
F +31 (0)10 850 1199

mailto:[email protected]
http://www.daidalos.nl/

KvK 27164984


De informatie - verzonden in of met dit e-mailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to