Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 728 Bytes

file.duplicate.md

File metadata and controls

24 lines (18 loc) · 728 Bytes

file.duplicate

The duplicate function is established to make a copy of a file or folder. If the destination is existed, it will NOT be overwritted.

Sample

file.duplicate("myFile.txt","yourFile.txt");
file.duplicate("myFolder","yourFolder");

API

CallingReturning
file . duplicate ( srcPath, destPath )Boolean
ParametersTypeDescription
srcPathStringThe relative file or folder path to the storage for coping.
destPathStringThe relative file or folder path to the storage for saving.