How to copy files from one node with all its properties(metadata etc..) to another node programatically?
say, a file has many childs
how do we copy this ai file from one node to another node with all those child information, properties?
Currently, I am trying to use
Node fileNode = node.addNode(name, JcrConstants.NT_FILE);
Node jcrContent = fileNode.addNode(JcrConstants.JCR_CONTENT, JcrConstants.NT_RESOURCE);
Is there any better api to copy the file directly with all its properties?
We can use JCRUtil api to copy with all information