How can I get the amount of files in a directory?
Adapted from: http://wiki.forum.nokia.com/index.ph...nd_directories
Code:import os i=0 folder="C:\\Python" for f in os.listdir(folder): i+=1 print i #i is the number of files
Last edited by bogdan.galiceanu; 2008-04-02 at 05:07.