How can I count the number of files in a directory using nodejs with just plain JavaScript or packages? I want to do something like this:
nodejs
How to count the n
Here the simple code,
import RNFS from 'react-native-fs'; RNFS.readDir(dirPath) .then((result) => { console.log(result.length); });