def islink(path):
    try:
        st = os.lstat(path)
    except (os.error, AttributeError):
        return False
    return stat.S_ISLNK(st.st_mode)
Test whether a path is a symbolic link
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/javapath.py/islink