API:Duplicatefiles/Sample code 1