def islink(path):
    """Test whether a path is a symbolic link"""
    try:
        st = os.lstat(path)
    except (os.error, __HOLE__):
        return False
    return stat.S_ISLNK(st.st_mode)


# Does a path exist?
# This is false for dangling symbolic links.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/posixpath.py/islink