'Return true if the remote path refers to an existing directory.'

def isdir(self, path):

    try:
        s = self.stat(path)
    except IOError:
        return False
    return stat.S_ISDIR(s.st_mode)
