|
|
@ -131,6 +131,7 @@ export const FileExplorer = (props: FileExplorerProps) => { |
|
|
|
|
|
|
|
|
|
|
|
const renamePath = async (oldPath: string, newPath: string) => { |
|
|
|
const renamePath = async (oldPath: string, newPath: string) => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
if (oldPath === newPath) return |
|
|
|
props.dispatchRenamePath(oldPath, newPath) |
|
|
|
props.dispatchRenamePath(oldPath, newPath) |
|
|
|
} catch (error) { |
|
|
|
} catch (error) { |
|
|
|
props.modal( |
|
|
|
props.modal( |
|
|
|