decode consumes the given reader and parses its contents as YAML.
Parse parses YAML files into Unstructured objects.
It supports 5 cases today: 1. pathname = path to a file --> parses that file. 2. pathname = path to a directory, recursive = false --> parses all files in
3. pathname = path to a directory, recursive = true --> parses all files in
that directory and it's descendants
4. pathname = url --> fetches the contents of that URL and parses them as YAML. 5. pathname = combination of all previous cases, the string can contain
multiple records (file, directory or url) separated by comma