跳至主要內容

芒果凍布丁2026/4/18小於 1 分鐘

renameFile

重新命名檔案。

語法
renameFile(oldPath: string, newPath: string): void
範例
// 這將把 old-file.txt 重新命名為 new-file.txt
FilesJS.renameFile('old-file.txt', 'new-file.txt');
最近更新:
貢獻者: EvanHsieh0415