Additions:
This can produce a very large output as it includes ALL documents in the database.
To limit documents to a single directory use
ml:list /Dir/
To limit documents to a single directory use
ml:list /Dir/
Additions:
# list
elif [ "$1" = "-r" ] ; then
shift ;
:query -q <{{
for $d in xdmp:directory($dir,"infinity")/base-uri()
order by $d
return $d
:query -q <{{
for $d in xdmp:directory($dir)/base-uri()
order by $d
return $d
elif [ "$1" = "-r" ] ; then
shift ;
:query -q <{{
for $d in xdmp:directory($dir,"infinity")/base-uri()
order by $d
return $d
:query -q <{{
for $d in xdmp:directory($dir)/base-uri()
order by $d
return $d
Deletions:
xdmp:directory($dir)/base-uri()
Additions:
list [options] [directory ...]
||-c,-connect uri||Use the connection string instead of $MLCONNECT||
||-r||recurse||
||directory||Optional directory to list||
ml:list
||-c,-connect uri||Use the connection string instead of $MLCONNECT||
||-r||recurse||
||directory||Optional directory to list||
ml:list
Deletions:
||-connect uri
-c uri|| Use the connection string instead of $MLCONNECT||
$ ml:list
Additions:
||-connect uri
-c uri|| Use the connection string instead of $MLCONNECT||
To list directories in a directory see [[MarkLogicListdir listdir]]
-c uri|| Use the connection string instead of $MLCONNECT||
To list directories in a directory see [[MarkLogicListdir listdir]]
Deletions:
-c uri Use the connection string instead of $MLCONNECT