module on files & directories

Simon Brunning simon.brunning at gmail.com
Thu Jan 13 07:57:53 EST 2005


On Thu, 13 Jan 2005 04:51:22 -0800 (PST), Sara Fwd <sara_fwd at yahoo.com> wrote:
> Hi all
> 
> Can anybody help me find a module or a function that
> looks in a directory and defines whether the objects
> in there are files or directories?

See os.path.isfile() and os.path.isdir() -
<http://docs.python.org/lib/module-os.path.html>.

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list