# FileSystemManager.copyFileSync(string srcPath, string destPath)
The synchronous version of FileSystemManager.copyFile.
# Parameters
# string srcPath
The path to the source file, which can only be a normal file
# string destPath
The path to the target file
# Errors
Error Code | Error Message | Description |
---|---|---|
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 |