'Test whether a remote path exists.
Returns True for broken symbolic links'

def lpath_exists(self, path):

    try:
        self.lstat(path)
        return True
    except IOError:
        return False
