fix cut bug

pull/4958/merge
Joseph Izang 3 months ago committed by Aniket
parent 3bd8139a11
commit 09240fb2b2
  1. 3
      libs/remix-ui/workspace/src/lib/actions/index.ts

@ -672,6 +672,7 @@ const saveAs = (blob, name) => {
export const moveFile = async (src: string, dest: string) => {
const fileManager = plugin.fileManager
if (src === dest) return // if you cut and paste to the same location then no need to move anything
try {
await fileManager.moveFile(src, dest)
} catch (error) {
@ -682,6 +683,8 @@ export const moveFile = async (src: string, dest: string) => {
export const moveFolder = async (src: string, dest: string) => {
const fileManager = plugin.fileManager
if (src === dest) return // if you cut and paste to the same location then no need to move anything
try {
await fileManager.moveDir(src, dest)
} catch (error) {

Loading…
Cancel
Save