From 1704be91bbbc32cc3c5e3f49a145f0fc3f13673b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 7 Nov 2024 01:16:59 +0100 Subject: [PATCH] fixup! fixup! fs: remove `dirent.path` --- benchmark/fs/bench-opendirSync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/fs/bench-opendirSync.js b/benchmark/fs/bench-opendirSync.js index 206822db139ff7..f24faa5d5e6994 100644 --- a/benchmark/fs/bench-opendirSync.js +++ b/benchmark/fs/bench-opendirSync.js @@ -8,7 +8,7 @@ tmpdir.refresh(); const testFiles = fs.readdirSync('test', { withFileTypes: true }) .filter((f) => f.isDirectory()) - .map((f) => path.join(f.path, f.name)); + .map((f) => path.join(f.parentPath, f.name)); const bench = common.createBenchmark(main, { type: ['existing', 'non-existing'], n: [1e3],