Geiregat Jonas wrote: > How can I check if a dir exists ? The os.path library has just what you're looking for. Use os.path.exists, like so: #!/usr/bin/python import os.path pathToFind = "/usr/bin/local" if os.path.exists(pathToFind): print "Path exists." else: print "Path does not exist." ~AF