Skip to content

Commit

Permalink
Fix incorrect path being used for stat
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Lloyd committed Jun 1, 2019
1 parent f05c188 commit 3967067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/src/electron/filesystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit 3967067

Please sign in to comment.