diff --git a/electron/src/electron/filesystem.ts b/electron/src/electron/filesystem.ts index 4e3d8f487e..2d82f9ac43 100644 --- a/electron/src/electron/filesystem.ts +++ b/electron/src/electron/filesystem.ts @@ -136,7 +136,7 @@ export class FilesystemPluginElectron extends WebPlugin implements FilesystemPlu if(Object.keys(this.fileLocations).indexOf(options.directory) === -1) reject(`${options.directory} is currently not supported in the Electron implementation.`); let lookupPath = this.fileLocations[options.directory] + options.path; - this.NodeFS.stat(options.path, (err:any, stats:any) => { + this.NodeFS.stat(lookupPath, (err:any, stats:any) => { if(err) reject(err); resolve({type: 'Not Available', size: stats.size, ctime: stats.ctimeMs, mtime: stats.mtimeMs, uri: lookupPath});