|
|
@ -201,10 +201,22 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
await moveFile(src, dest) |
|
|
|
await moveFile(src, dest) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dispatchMoveFiles = async (src: string[], dest: string) => { |
|
|
|
|
|
|
|
for (const path of src) { |
|
|
|
|
|
|
|
await moveFile(path, dest) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const dispatchMoveFolder = async (src: string, dest: string) => { |
|
|
|
const dispatchMoveFolder = async (src: string, dest: string) => { |
|
|
|
await moveFolder(src, dest) |
|
|
|
await moveFolder(src, dest) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dispatchMoveFolders = async (src: string[], dest: string) => { |
|
|
|
|
|
|
|
for (const path of src) { |
|
|
|
|
|
|
|
await moveFolder(path, dest) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const dispatchShowAllBranches = async () => { |
|
|
|
const dispatchShowAllBranches = async () => { |
|
|
|
await showAllBranches() |
|
|
|
await showAllBranches() |
|
|
|
} |
|
|
|
} |
|
|
@ -367,7 +379,9 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
dispatchHandleRestoreBackup, |
|
|
|
dispatchHandleRestoreBackup, |
|
|
|
dispatchCloneRepository, |
|
|
|
dispatchCloneRepository, |
|
|
|
dispatchMoveFile, |
|
|
|
dispatchMoveFile, |
|
|
|
|
|
|
|
dispatchMoveFiles, |
|
|
|
dispatchMoveFolder, |
|
|
|
dispatchMoveFolder, |
|
|
|
|
|
|
|
dispatchMoveFolders, |
|
|
|
dispatchShowAllBranches, |
|
|
|
dispatchShowAllBranches, |
|
|
|
dispatchSwitchToBranch, |
|
|
|
dispatchSwitchToBranch, |
|
|
|
dispatchCreateNewBranch, |
|
|
|
dispatchCreateNewBranch, |
|
|
|