Mark Logic Command: rename
Renames (moves) documents on a Mark Logic server to a new URISynopsis
rename [options] src targetDescription
Renames (moves) documents on a Mark Logic server to a new URIAll properties, permissions, and collections are moved along with the document.
-c,-connect uri | Use the connection string instead of $MLCONNECT |
src | URI of the document to move |
target | URI of the target |
Example
Assuming the prefix "ml" is imported as the marklogic module,moves /dir/file1 to /dir2/file2ml:rename /dir/file1 /dir2/file2
MarkLogic Extension Module