Monday, September 5, 2011

getting the number of files in a directory using python

 python -c "import os; print len(os.listdir('.'))"

No comments:

Post a Comment