diff options
Diffstat (limited to 'std/node/_fs/_fs_dirent.ts')
-rw-r--r-- | std/node/_fs/_fs_dirent.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/std/node/_fs/_fs_dirent.ts b/std/node/_fs/_fs_dirent.ts index 38cd23d88..55fbad142 100644 --- a/std/node/_fs/_fs_dirent.ts +++ b/std/node/_fs/_fs_dirent.ts @@ -1,7 +1,7 @@ import { notImplemented } from "../_utils.ts"; export default class Dirent { - constructor(private entry: Deno.FileInfo) {} + constructor(private entry: Deno.DirEntry) {} isBlockDevice(): boolean { return this.entry.blocks != null; @@ -12,7 +12,7 @@ export default class Dirent { } isDirectory(): boolean { - return this.entry.isDirectory(); + return this.entry.isDirectory; } isFIFO(): boolean { @@ -23,7 +23,7 @@ export default class Dirent { } isFile(): boolean { - return this.entry.isFile(); + return this.entry.isFile; } isSocket(): boolean { @@ -32,7 +32,7 @@ export default class Dirent { } isSymbolicLink(): boolean { - return this.entry.isSymlink(); + return this.entry.isSymlink; } get name(): string | null { |