pull/2863/head
filip mertens 2 years ago committed by GitHub
parent c8f4ecd9cb
commit e7f4bd29b3
  1. 3
      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)
}
}

Loading…
Cancel
Save