diff --git a/apps/remix-ide/src/app/files/fileManager.js b/apps/remix-ide/src/app/files/fileManager.js index c91803c5f2..8e46839fcf 100644 --- a/apps/remix-ide/src/app/files/fileManager.js +++ b/apps/remix-ide/src/app/files/fileManager.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 } diff --git a/apps/remix-ide/src/lib/helper.js b/apps/remix-ide/src/lib/helper.js index a518ef98a2..ab7f8c743f 100644 --- a/apps/remix-ide/src/lib/helper.js +++ b/apps/remix-ide/src/lib/helper.js @@ -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 {