Skip to content

Instantly share code, notes, and snippets.

@w33tmaricich
Last active March 21, 2016 14:12
Show Gist options
  • Save w33tmaricich/5100508 to your computer and use it in GitHub Desktop.
Save w33tmaricich/5100508 to your computer and use it in GitHub Desktop.
py: number of files in directory
import os
number = len([name for name in listdir('.') if isfile(name)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment