Lines Matching refs:dirent
130 function getDirentPath(dirent) { argument
131 return pathModule.relative(testDir, dirent.path);
136 for (const [i, dirent] of dirents.entries()) {
137 assert(dirent instanceof fs.Dirent);
138 assert.strictEqual(getDirentPath(dirent), expected[i]);
144 let dirent = dir.readSync();
145 while (dirent !== null) {
146 dirents.push(dirent);
147 dirent = dir.readSync();
173 dir.read((err, dirent) => {
178 if (dirent !== null) {
179 acc.push(dirent);
213 for await (const dirent of dir) {
214 dirents.push(dirent);