'Sends info on all the items in the path.'

def cmd_lsinfo(self, conn, path=u'/'):

    node = self._resolve_path(path)
    if isinstance(node, int):
        raise BPDError(ERROR_ARG, u'this    is    not    a    directory')
    else:
        for (name, itemid) in iter(sorted(node.files.items())):
            item = self.lib.get_item(itemid)
            (yield self._item_info(item))
        for (name, _) in iter(sorted(node.dirs.items())):
            dirpath = self._path_join(path, name)
            if dirpath.startswith(u'/'):
                dirpath = dirpath[1:]
            (yield (u'directory:    %s' % dirpath))
