Test for plain files

Thomas Weholt u970130 at studbo.hit.no
Thu Oct 14 20:51:38 EDT 1999


Hi,

I need to know wether or not a file is a dir or a plain file. I`m
using os.walk to traverse directory-tree, and want to process only
plain files. How can I do this or what module can be used? 

I`ve allready looked into os.stat for info, but is there sort of a
os.stat.isdir() function available? 

Thanks.

Thomas Weholt




More information about the Python-list mailing list