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: ...@@ -104,17 +104,27 @@ metadata:
directory: # corresponds to the directory given to the crawler directory: # corresponds to the directory given to the crawler
type: Directory type: Directory
match: .* # we do not care how it is named here match: .* # we do not care how it is named here
records:
DirRecord: # One record for each directory.
subtree: subtree:
# This is the file # This is the file
thisfile: thisfile:
type: []{file} type: []{file}
match: []{match} match: []{match}
records:
DatFileRecord: # One record for each matching file
role: File
path: $thisfile
file: $thisfile
subtree: subtree:
entry: entry:
type: Dict type: Dict
match: .* # Name is irrelevant match: .* # Name is irrelevant
records: records:
MyParent: BaseElement: # One BaseElement record for each row in the CSV/TSV file
DatFileRecord: $DatFileRecord
DirRecord:
BaseElement: +$BaseElement
subtree: !macro subtree: !macro
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment