From b2833812db6afa164ab4e4a6051aff0ec65743b5 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 2 Sep 2022 14:35:58 +0200 Subject: [PATCH] fix --- apps/remix-ide/src/app/files/fileManager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/files/fileManager.ts b/apps/remix-ide/src/app/files/fileManager.ts index 9d45788cd0..6453fb58b2 100644 --- a/apps/remix-ide/src/app/files/fileManager.ts +++ b/apps/remix-ide/src/app/files/fileManager.ts @@ -875,12 +875,11 @@ class FileManager extends Plugin { if (await this.exists(dest + '/' + dirName) || src === dest) { throw createError({ code: 'ENOENT', message: `Cannot move ${src}. Folder already exists at destination ${dest}`}) } - console.log('mv files') + await this.copyDir(src, dest, dirName) await this.remove(src) } catch (e) { - console.log('mv dir error', e) throw new Error(e) } }