count files in a directory

James Stroud jstroud at mbi.ucla.edu
Fri May 20 22:40:36 EDT 2005


Come to think of it

file_count = len(os.walk(valid_path)[2])

--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/



More information about the Python-list mailing list