Walk a tree of imported meta

This commit is contained in:
Dan Hawkins 2021-12-13 23:25:42 +00:00
commit 3b446d07bd

View file

@ -942,21 +942,22 @@ class MetaInfo extends GISJsonSerialised {
nextpath = gatheredpath + '/' + relatedmetainfo.offsetpath
importedmetafile = nextpath + '/' + METAFILENAME
}
def boolean next
def boolean imported
if (script.fileExists(importedmetafile)) {
script.echo("Deserialising meta at file: ${importedmetafile}")
mi.deserialiseJson(importedmetafile)
next = true
imported = true
} else {
script.echo("Could not deserialise meta at file: ${importedmetafile} - Does not exist")
next = false
imported = false
}
def childmetainfo = [
'next': next,
'imported': imported,
'nextpath': nextpath,
'childmeta': mi
]
script.echo("Child meta results: ${childmetainfo}")
return childmetainfo
}