def is_link(path, use_sudo=False, verbose=False):
    func = sudo if use_sudo else run
    cmd = 'test -L "$(echo %s)"' % path
    args, kwargs = [], {'warn_only': True}
    if not verbose:
        args = [hide('everything')]
    with settings(*args, **kwargs):
        return func(cmd).succeeded
Return True if the given path is a symlink on the current remote host.
dataset/ETHPy150Open fabric/fabric/fabric/contrib/files.py/is_link