The following query will return only the directories directly below the current
directory.
XQuery:
cts:uris("", "any", cts:directory-query("/folder/"))
Hence, if you have the folders:
/a/b
/a/c
/a/d
cts:uris("", "any", cts:directory-query("/a/"))
would return the directory URIs:
/a/b/
/a/c/
/a/d/
Brad Rix
Flatirons Solutions, Inc
Senior Developer
O: 303.542.2172
C: 303.915.2771
________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of Pradeep Maddireddy
Sent: Friday, February 13, 2009 11:24 AM
To: [email protected]
Subject: [MarkLogic Dev General] all subdirectories in a directory
Hi..!
Is there any function which would list all subdirectories in a directory?
I cannot use the function xdmp:directory as it will not return the directories
that have no documents.
Thanks in advance.
Regards,
Pradeep Maddireddy
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general