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)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/javapath.py/islink