MCPcopy Create free account
hub / github.com/esengine/esengine / renameFileOrFolder

Method renameFileOrFolder

packages/editor-app/src/api/tauri.ts:242–244  ·  view source on GitHub ↗

* 重命名文件或文件夹 * @param oldPath 原路径 * @param newPath 新路径

(oldPath: string, newPath: string)

Source from the content-addressed store, hash-verified

240 * @param newPath 新路径
241 */
242 static async renameFileOrFolder(oldPath: string, newPath: string): Promise<void> {
243 return await invoke<void>('rename_file_or_folder', { oldPath, newPath });
244 }
245
246 /**
247 * 删除文件

Callers 2

ContentBrowserFunction · 0.80
handleRenameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected