module on files & directories

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

On Thu, 13 Jan 2005 04:51:22 -0800 (PST), Sara Fwd <sara_fwd at> 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() -

Simon B,
simon at,

More information about the Python-list mailing list