Directory entries can be obtained through asynchronous iteration:
const dirIter = await tjs.readDir('.');for await (const item of dirIter) { console.log(item.name);} Copy
const dirIter = await tjs.readDir('.');for await (const item of dirIter) { console.log(item.name);}
Path of the directory.
Closes the directory handle.
Rest
Optional
Directory entries can be obtained through asynchronous iteration: