DEV Community

Discussion on: Get files recursive with the Node.js File System (FS)

Collapse
vaibhav_arora__ profile image
Vaibhav Arora

There is error in following line -
const entries = await fs.readdir(path, { withFileTypes: true });

It needs callback