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:
Antoine du Hamel 2024-10-26 10:27:24 +02:00
parent 8a29648ff5
commit d9540b51eb
No known key found for this signature in database
GPG key ID: 21D900FFDB233756
8 changed files with 10 additions and 52 deletions

View file

@ -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) {