pull/5370/head
filip mertens 1 year ago
parent ce96b34767
commit f6796bc2ab
  1. 3
      apps/remix-ide/src/app/files/dgitProvider.js

@ -118,18 +118,15 @@ class DGitProvider extends Plugin {
})
})
console.log('to remove', toRemove)
for (const module of toRemove) {
const path = (await this.getGitConfig(module.path)).dir
if (await window.remixFileSystem.exists(path)) {
const stat = await window.remixFileSystem.stat(path)
try {
if (stat.isDirectory()) {
console.log('removing', path)
await window.remixFileSystem.unlink((await this.getGitConfig(module.path)).dir)
}
} catch (e) {
console.log(e)
// do nothing
}
}

Loading…
Cancel
Save