We sometimes have directories with more than 800,000 files. Is there a command or way to read the the entries, and without blocking, stop reading when count of files is above a certain number?

Or...