在文件树上支持右键添加文件和添加目录操作

This commit is contained in:
xintaofei
2026-03-13 23:33:31 +08:00
parent 874591a473
commit f4f70c438a
14 changed files with 363 additions and 12 deletions

View File

@@ -850,6 +850,15 @@ export async function deleteFileTreeEntry(
return invoke("delete_file_tree_entry", { rootPath, path })
}
export async function createFileTreeEntry(
rootPath: string,
path: string,
name: string,
kind: "file" | "dir"
): Promise<string> {
return invoke("create_file_tree_entry", { rootPath, path, name, kind })
}
export async function gitLog(
path: string,
limit?: number,