Revert unused changes

pull/892/head
ioedeveloper 4 years ago committed by GitHub
parent 44f40f5185
commit 5b2d3c5190
  1. 9
      apps/remix-ide/src/app/files/fileManager.js
  2. 1
      apps/remix-ide/src/lib/helper.js

@ -100,18 +100,13 @@ class FileManager extends Plugin {
* @param {string} path path of the directory or file
* @returns {boolean} true if the path exists
*/
async exists (path, type) {
exists (path) {
const provider = this.fileProviderOf(path)
const result = await provider.exists(path, (err, result) => {
const result = provider.exists(path, (err, result) => {
if (err) return false
return result
})
if (type === 'file') {
return result && await this.isFile(path)
} else if (type === 'folder') {
return result && await this.isDirectory(path)
}
return result
}

@ -37,7 +37,6 @@ module.exports = {
() => { return exist },
(callback) => {
fileProvider.exists(name + counter + prefix + '.' + ext, (error, currentExist) => {
console.log('currentExists: ', currentExist)
if (error) {
callback(error)
} else {

Loading…
Cancel
Save