|
|
@ -82,8 +82,14 @@ class FSPluginClient extends ElectronBasePluginClient { |
|
|
|
return fs.rename(this.fixPath(oldPath), this.fixPath(newPath)) |
|
|
|
return fs.rename(this.fixPath(oldPath), this.fixPath(newPath)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async stat(path: string): Promise<Stats> { |
|
|
|
async stat(path: string): Promise<any> { |
|
|
|
return fs.stat(this.fixPath(path)) |
|
|
|
const stat = await fs.stat(path) |
|
|
|
|
|
|
|
//console.log('stat', path, stat)
|
|
|
|
|
|
|
|
const isDirectory = stat.isDirectory() |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
...stat, |
|
|
|
|
|
|
|
isDirectoryValue: isDirectory |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async exists(path: string): Promise<boolean> { |
|
|
|
async exists(path: string): Promise<boolean> { |
|
|
|