def exists(path):
    try:
        st = os.stat(path)
    except os.error:
        return False
    return True


# Being true for dangling symbolic links is also useful.
Test whether a path exists.  Returns False for broken symbolic links
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/posixpath.py/exists