Good catch - I missed that it was creating the file rather than just copying it.