fix set content

pull/5370/head
yann300 5 years ago committed by ioedeveloper
parent f51ae246b0
commit 84c541e4c8
  1. 5
      apps/remix-ide/src/app/files/fileProvider.js

@ -93,7 +93,10 @@ class FileProvider {
cb = cb || function () {}
var unprefixedpath = this.removePrefix(path)
var exists = window.remixFileSystem.existsSync(unprefixedpath)
if (exists && window.remixFileSystem.readFileSync(unprefixedpath, 'utf8') === content) return true
if (exists && window.remixFileSystem.readFileSync(unprefixedpath, 'utf8') === content) {
cb()
return true
}
if (!exists && unprefixedpath.indexOf('/') !== -1) {
this.createDir(path)
}

Loading…
Cancel
Save