// Delete the new permissions
perAPI.removePermissions(destinationFile);
// Copy the new permissions
perAPI.copyPermissions((Permissionable)children[i].getFile(), destinationFile);
// ### END Copy the permission ###
// }
} else {
copyFolder(sourcePath + "/" + children[i].getName(), destinationPath + "/" + children[i].getName(), user, autoPublish);