How do I read the number of files in a specific folder using Python? Example code would be awesome!
recursive solution:
sum(len(fs) for _,_,fs in os.walk(os.getcwd()))
for current directory solution:
len(os.walk(os.getcwd()).next()[2])