src/server/pkg/hashtree/db.go
func (h *dbHashTree) ListAll(path string) ([]*NodeProto, error) {
	var result []*NodeProto
	if err := h.List(path, func(node *NodeProto) error {
		result = append(result, node)
		return nil
	}); err != nil {
		return nil, err
	}
	return result, nil
}
func (h *dbHashTree) ListAll(path string) ([]*NodeProto, error) {
	var result []*NodeProto
	if err := h.List(path, func(node *NodeProto) error {
		result = append(result, node)
		return nil
	}); err != nil {
		return nil, err
	}
	return result, nil
}
func ( h * dbHashTree ) ListAll ( path string ) ( [ ] * NodeProto , error ) { var result [ ] * NodeProto if err := h . List ( path , func ( node * NodeProto ) error { result = append ( result , node ) return nil } ) ; err != nil { return nil , err } return result , nil }
// ListAll retrieves all the files under a directory (or a file if the path is a file).
ListAll retrieves all the files under a directory ( or a file if the path is a file ) .