Skip to content

Commit

Permalink
streamich#735 - use Dirent parentPath instead of path in Volume
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulKa committed Sep 17, 2024
1 parent ea54d9f commit 91dbce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ export class Volume implements FsCallbackApi, FsSynchronousApi {

return list.map(dirent => {
if (options.recursive) {
let fullPath = pathModule.join(dirent.path, dirent.name.toString());
let fullPath = pathModule.join(dirent.parentPath, dirent.name.toString());
if (isWin) {
fullPath = fullPath.replace(/\\/g, '/');
}
Expand Down

0 comments on commit 91dbce6

Please sign in to comment.