Lines Matching refs:dirent
21 function assertDirent(dirent) { argument
22 assert(dirent instanceof fs.Dirent);
23 assert.strictEqual(dirent.isFile(), true);
24 assert.strictEqual(dirent.isDirectory(), false);
25 assert.strictEqual(dirent.isSocket(), false);
26 assert.strictEqual(dirent.isBlockDevice(), false);
27 assert.strictEqual(dirent.isCharacterDevice(), false);
28 assert.strictEqual(dirent.isFIFO(), false);
29 assert.strictEqual(dirent.isSymbolicLink(), false);
49 const dirent = dir.readSync(); constant
50 assertDirent(dirent);
51 …return { name: dirent.name, path: dirent.path, parentPath: dirent.parentPath, toString() { return …
72 dir.read(common.mustSucceed((dirent) => {
76 assert(files.includes(dirent.name), `'files' should include ${dirent}`);
77 assertDirent(dirent);
80 dir.read(common.mustSucceed((dirent) => {
128 const dirent = await dir.read();
129 entries.push(dirent.name);
130 assertDirent(dirent);
145 for await (const dirent of await fs.promises.opendir(testDir)) {
146 entries.push(dirent.name);
147 assertDirent(dirent);
160 for await (const dirent of dir) { // eslint-disable-line no-unused-vars
171 for await (const dirent of dir) {
183 for await (const dirent of dir) { // eslint-disable-line no-unused-vars