Feature request: isEmptyDir()
Author: bteaCreated Mar 19, 2024Updated Sep 8, 2026
Labelsenhancement
Sometimes we encounter situations where we need to determine whether a directory is empty before deleting or performing other operations. Therefore, I think it might be convenient if an API can be provided.
fs.isEmptyDir(dir[,callback])Source: jprichardson/node-fs-extra