(path)
return True
Test whether a path exists.  Returns False for broken symbolic links
Test whether a path exists.  Returns False for broken symbolic links
Test whether a path exists . Returns False for broken symbolic links
def exists(path):
    """Test whether a path exists.  Returns False for broken symbolic links"""
    try:
        os.stat(path)
    except (OSError, ValueError):
        return False
    return True
def exists ( path ) : try : os . stat ( path ) except ( OSError , ValueError ) : return False return True