I am creating a replica of an existing node something like :
$new_node = clone $original_node;
The problem is that the node has a file attached via a file field. I want the cloned version to have its pwn replica of the attached file, rather than just reference the same uploaded file.
Any ideas would be appreciated.