fsPromises.rename(oldPath, newPath)
返回上层文档
新增于: v10.0.0
oldPath
<string>
|
<Buffer>
|
<URL>
newPath
<string>
|
<Buffer>
|
<URL>
返回:
<Promise>
成功时返回
undefined
。
将
oldPath
重命名为
newPath
。
【Renames
oldPath
to
newPath
.】