# FileSystemManager.renameSync(string oldPath, string newPath)

The synchronous version of FileSystemManager.rename.

# Parameters

# string oldPath

The path to the source file, which can be a normal file or directory

# string newPath

New file path

# Errors

Error Code Error Message Description
fail permission denied, rename ${oldPath} -> ${newPath} No write permission on the specified source file or target file
fail no such file or directory, rename ${oldPath} -> ${newPath} The source file does not exist, or the upper-layer directory of the target file path does not exist