[Tutor] Howto test if something is a directory?
Neil Conway <Neil Conway
Sun, 23 Jan 2000 14:38:20 -0500 (EST)
-----BEGIN PGP SIGNED MESSAGE-----
I want to take the output of os.listdir() and test each entry to see
if it is a directory, or a regular file. What is the best way to do
I would prefer a method that works on Windows, Mac and UNIX, but if it
is OS-dependant, UNIX is by far the most important.
Sorry if this is in the standard documentation, I couldn't find it.
Thanks in advance,,
Neil Conway <firstname.lastname@example.org>
Get my GnuPG key from <http://126.96.36.199/mykey.asc>
It should be first patch, not first post
-- Alan Cox
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard <http://www.gnupg.org/>
-----END PGP SIGNATURE-----