Skip to content

Instantly share code, notes, and snippets.

@timusg
Created September 11, 2013 17:12
Show Gist options
  • Save timusg/6526743 to your computer and use it in GitHub Desktop.
Save timusg/6526743 to your computer and use it in GitHub Desktop.
fast file count in large number of files in dir
time python -c "from os import listdir; print len(listdir('some dir'))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment