# FileSystemManager.copyFile(Object object)

Copies files.

# Parameters

# Object object

Attribute Type Default Required Description
srcPath string Yes The path to the source file, which can only be a normal file
destPath string Yes The path to the target file
success function No The callback function for a successful API call
fail function No Callback function for failed API call
complete function No Callback function used when API call completed (always executed whether call succeeds or fails)

# object.fail callback function

# Parameters
# Object res
Property Type Description
errMsg string Error message

Valid values of res.errMsg

Value Description Minimum Version
fail permission denied, copyFile ${srcPath} -> ${destPath} No write permission on the specified target file path
fail no such file or directory, copyFile ${srcPath} -> ${destPath} The source file does not exist, or the upper-layer directory of the target file path does not exist