Test for plain files

Fred L. Drake, Jr. fdrake at acm.org
Fri Oct 15 13:59:29 EDT 1999


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

Thomas,
  Try os.path.isdir().
  You can look in the general index for the name you'd expect the
function to have, and it will link to the right place in the
documentation.


  -Fred

--
Fred L. Drake, Jr.	     <fdrake at acm.org>
Corporation for National Research Initiatives




More information about the Python-list mailing list