[Tutor] Howto test if something is a directory?
Neil Conway <Neil Conway
nconway@klamath.dyndns.org
Sun, 23 Jan 2000 14:38:20 -0500 (EST)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
this?
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
- --
Neil Conway <neilconway@home.com>
Get my GnuPG key from <http://24.112.188.210/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/>
iD8DBQE4i1iogmYXwds8KfwRAklOAJ4qBW7uy1u95s5ZmdNXcbnAzTfFYwCfTXsq
g7R80GDo42OaJOW6hFWrATg=
=AjXW
-----END PGP SIGNATURE-----