code: func getDirInfo(item blob.Ref, peers map[string]*search.DescribedBlob) (path []blob.Ref, di *camtypes.FileInfo, ok bool) {
  	described := peers[item.String()]
  	if described == nil ||
  		described.Permanode == nil ||
  		described.Permanode.Attr == nil {
  		return
  	}
  	contentRef := described.Permanode.Attr.Get("camliContent")
  	if contentRef == "" {
  		return
  	}
  	if cdes := peers[contentRef]; cdes != nil && cdes.Dir != nil {
  		return []blob.Ref{described.BlobRef, cdes.BlobRef}, cdes.Dir, true
  	}
  	return
  }
docs: // TODO(mpl): refactor with getFileInfo