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 /cli/standalone/virtual_fs.rs | |
parent | 1d6b775f812f22f90d27a5d81a59070ad2d1172b (diff) |
fix(ext/node): Add Dirent.path and Dirent.parentPath (#24257)
Diffstat (limited to 'cli/standalone/virtual_fs.rs')
-rw-r--r-- | cli/standalone/virtual_fs.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/standalone/virtual_fs.rs b/cli/standalone/virtual_fs.rs index 4c14f0e9a..3e6823d50 100644 --- a/cli/standalone/virtual_fs.rs +++ b/cli/standalone/virtual_fs.rs @@ -764,6 +764,7 @@ impl FileBackedVfs { .entries .iter() .map(|entry| FsDirEntry { + parent_path: path.to_string_lossy().into_owned(), name: entry.name().to_string(), is_file: matches!(entry, VfsEntry::File(_)), is_directory: matches!(entry, VfsEntry::Dir(_)), |