mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
fs: remove dirent.path
PR-URL: https://github.com/nodejs/node/pull/55548 Fixes: https://github.com/nodejs/node/issues/55538 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
This commit is contained in:
parent
8a29648ff5
commit
d9540b51eb
8 changed files with 10 additions and 52 deletions
|
@ -127,7 +127,7 @@ for (let i = 0; i < expected.length; i++) {
|
|||
}
|
||||
|
||||
function getDirentPath(dirent) {
|
||||
return pathModule.relative(readdirDir, pathModule.join(dirent.path, dirent.name));
|
||||
return pathModule.relative(readdirDir, pathModule.join(dirent.parentPath, dirent.name));
|
||||
}
|
||||
|
||||
function assertDirents(dirents) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue