summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_fs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/_fs')
-rw-r--r--ext/node/polyfills/_fs/_fs_dirent.ts9
1 files changed, 9 insertions, 0 deletions
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;
+ }
}