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

def path_exists(self, path):

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