title: Node.js: How to check if folder is empty or not with out uploading list of files
body: <p>I am using <code>Node.js</code>.</p>
  
  <p>I want to check if <strong>folder is empty</strong> or not? One option is to use <strong>fs.readdir</strong> but it loads whole bunch of files into an array. 
  I have more than 10000 files in the folder. Loading files name is useless just to check if folder is empty or not. So looking for alternate solution.</p>