From 209b2868131f43e1707fc706805a270a2b73d45a Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 19 Jun 2024 12:51:01 +0530 Subject: fix(ext/node): Add Dirent.path and Dirent.parentPath (#24257) --- ext/node/polyfills/_fs/_fs_dirent.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ext/node/polyfills') diff --git a/ext/node/polyfills/_fs/_fs_dirent.ts b/ext/node/polyfills/_fs/_fs_dirent.ts index 155d5cb03..0f80fc135 100644 --- a/ext/node/polyfills/_fs/_fs_dirent.ts +++ b/ext/node/polyfills/_fs/_fs_dirent.ts @@ -43,4 +43,13 @@ export default class Dirent { get name(): string | null { return this.entry.name; } + + get parentPath(): string { + return this.entry.parentPath; + } + + /** @deprecated */ + get path(): string { + return this.parentPath; + } } -- cgit v1.2.3