src/server/pkg/hashtree/db.go
func Get(rs []io.ReadCloser, filePath string) (*NodeProto, error) {
	filePath = clean(filePath)
	var fileNode *NodeProto
	if err := nodes(rs, func(path string, node *NodeProto) error {
		if path == filePath {
			fileNode = node
		}
		return nil
	}); err != nil {
		return nil, err
	}
	if fileNode == nil {
		return nil, errorf(PathNotFound, "file \"%s\" not found", filePath)
	}
	return fileNode, nil
}
func Get(rs []io.ReadCloser, filePath string) (*NodeProto, error) {
	filePath = clean(filePath)
	var fileNode *NodeProto
	if err := nodes(rs, func(path string, node *NodeProto) error {
		if path == filePath {
			fileNode = node
		}
		return nil
	}); err != nil {
		return nil, err
	}
	if fileNode == nil {
		return nil, errorf(PathNotFound, "file \"%s\" not found", filePath)
	}
	return fileNode, nil
}
// Get gets a hashtree node.