I saw this How to count the number of files in a directory using Python
and have this:
import os, os.path
print len([name for name in os.listdir(os.path.expanduser("~")) if os.path.isfile(name)])
but it always returns 0. How would i modify this to return the count of files?
thx