fsPromises.rename(oldPath, newPath)


oldPath 重命名为 newPath

¥Renames oldPath to newPath.