detect if file or dir

Emile van Sebille emile at fenx.com
Wed Jul 11 19:11:21 EDT 2001


You'll find isfile and isdir in os.path

HTH,

--

Emile van Sebille
emile at fenx.com

---------
"pedro" <pedro at athlet.de> wrote in message
news:3b4cd747.27470810 at news.isis.de...
> hi,
>
> how can i detect if sth. is a file or a directory? exists(directory)
> does tell me if sth. is a directory but exits my script wenn it hits a
> file.
>
> thx
> pedro




More information about the Python-list mailing list