Walk a tree of imported meta
This commit is contained in:
parent
6200503642
commit
3b446d07bd
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue