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