update test1

rdesktop^2
filip mertens 1 year ago
parent 6534e8aa47
commit 2e39267532
  1. 10
      apps/1test/src/electron/fsPlugin.ts

@ -82,8 +82,14 @@ class FSPluginClient extends ElectronBasePluginClient {
return fs.rename(this.fixPath(oldPath), this.fixPath(newPath))
}
async stat(path: string): Promise<Stats> {
return fs.stat(this.fixPath(path))
async stat(path: string): Promise<any> {
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> {

Loading…
Cancel
Save