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


# Being true for dangling symbolic links is also useful.
:raises: VcsError if hg not detected
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/posixpath.py/exists--crossover with--dataset/ETHPy150Open vcstools/vcstools/src/vcstools/hg.py/HgClient.__init__