afero
afero copied to clipboard
what's the fastest way to count the number of files in a large directory?
I have a very large directory and slows to a halt when performing an ls. I wanted to know what's the fastest and most cost efficient way to count the number of items in a directory with afero.