From 0d24909cd913273aa714cd49557b5b097730e0b2 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Mon, 8 Jan 2024 10:17:19 +0100 Subject: [PATCH] Update fsPlugin.ts --- .../src/app/plugins/electron/fsPlugin.ts | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/apps/remix-ide/src/app/plugins/electron/fsPlugin.ts b/apps/remix-ide/src/app/plugins/electron/fsPlugin.ts index 5c04d5d841..679b6199ea 100644 --- a/apps/remix-ide/src/app/plugins/electron/fsPlugin.ts +++ b/apps/remix-ide/src/app/plugins/electron/fsPlugin.ts @@ -18,8 +18,6 @@ export class fsPlugin extends ElectronPlugin { }) this.methods = ['readdir', 'readFile', 'writeFile', 'mkdir', 'rmdir', 'unlink', 'rename', 'stat', 'lstat', 'exists', 'setWorkingDir', 'getRecentFolders', 'openWindow'] - - // List of commands all filesystems are expected to provide. `rm` is not // included since it may not exist and must be handled as a special case const commands = [ @@ -36,7 +34,6 @@ export class fsPlugin extends ElectronPlugin { ] this.fs = { - exists: async (path: string) => { path = fixPath(path) const exists = await this.call('fs', 'exists', path) @@ -109,29 +106,11 @@ export class fsPlugin extends ElectronPlugin { path = fixPath(path) return await this.call('fs', 'symlink', target, path) } - - - - - } - - - - - - - } - - - async onActivation() { - (window as any).remixFileSystem = this.fs - - this.on('fs', 'workingDirChanged', async (path: string) => { workingDir = path await this.call('fileManager', 'refresh') @@ -145,5 +124,4 @@ export class fsPlugin extends ElectronPlugin { } }) } - -} \ No newline at end of file +}