Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (18 loc) · 724 Bytes

file.duplicate.md

File metadata and controls

23 lines (18 loc) · 724 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.