check whether directory exists python code example Example: python check if folder exists os.path.isdir("/home/el")