Trying this I have found a strange problem:
Then the "created time" property of the new file is set to the "created time" of the old file. Why does that happen? And how?