diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-06-19 12:51:01 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 12:51:01 +0530 |
commit | 209b2868131f43e1707fc706805a270a2b73d45a (patch) | |
tree | 21cc20106b54307be1627ffb2a413735554caa99 /ext/fs/std_fs.rs | |
parent | 1d6b775f812f22f90d27a5d81a59070ad2d1172b (diff) |
fix(ext/node): Add Dirent.path and Dirent.parentPath (#24257)
Diffstat (limited to 'ext/fs/std_fs.rs')
-rw-r--r-- | ext/fs/std_fs.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/fs/std_fs.rs b/ext/fs/std_fs.rs index 9e2acedcc..054f5c9c4 100644 --- a/ext/fs/std_fs.rs +++ b/ext/fs/std_fs.rs @@ -785,6 +785,7 @@ fn read_dir(path: &Path) -> FsResult<Vec<FsDirEntry>> { }; } Some(FsDirEntry { + parent_path: path.to_string_lossy().to_string(), name, is_file: method_or_false!(is_file), is_directory: method_or_false!(is_dir), |