fix cut bug

pull/5370/head
Joseph Izang 3 months ago committed by Aniket
parent b967f4a0f5
commit 4428310fe7
  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