Skip to content
Snippets Groups Projects
Verified Commit e324aaf4 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: Better generated CFood.yaml

parent e5b11b26
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!176misc. small changes
Pipeline #52452 passed
......@@ -104,17 +104,27 @@ metadata:
directory: # corresponds to the directory given to the crawler
type: Directory
match: .* # we do not care how it is named here
records:
DirRecord: # One record for each directory.
subtree:
# This is the file
thisfile:
type: []{file}
match: []{match}
records:
DatFileRecord: # One record for each matching file
role: File
path: $thisfile
file: $thisfile
subtree:
entry:
type: Dict
match: .* # Name is irrelevant
records:
MyParent:
BaseElement: # One BaseElement record for each row in the CSV/TSV file
DatFileRecord: $DatFileRecord
DirRecord:
BaseElement: +$BaseElement
subtree: !macro
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment