Hi All,
Product BOE 3.0
JAVA 1.5
I am trying to copy one folder to another location.
When I take one folder and paste it to another folder.
I am able to get the folder name but when i open that folder it is blank.
I would like to know correct method to copy the folder along with its contents to another location.
Below code only copies folder and not its contents.
IInfoObject item = (IInfoObject)infoObjs.get(0);
IInfoObject itemToCopy=infoObjs.copy(item, IInfoObjects.CopyModes.COPY_NEW_OBJECT_NEW_FILES);
itemToCopy.setParentID(Integer.parseInt(destinationfolderID));
newTitle=item.getTitle();
System.out.println(“New Title =”+newTitle);
itemToCopy.setTitle(newTitle);
System.out.println(“Organize -Before Saving”);
itemToCopy.save();
Does anyone have code to copy folder contents as well?
Thanks in advance.
Praveen.
Praveen Gawande (BOB member since 2009-04-25)