Walk a tree of imported meta

This commit is contained in:
Dan Hawkins 2021-12-13 23:18:28 +00:00
commit 6200503642

View file

@ -931,15 +931,17 @@ class MetaInfo extends GISJsonSerialised {
}
def openchildmeta(String gatheredpath, RelatedMetaInfo relatedmetainfo) {
MetaInfo mi = new MetaInfo(script)
def MetaInfo mi = new MetaInfo(script)
def String nextpath
def importedmetafile
if (gatheredpath == '') {
nextpath = relatedmetainfo.offsetpath
importedmetafile = nextpath + '/' + metafilepath()
} else {
nextpath = gatheredpath + '/' + relatedmetainfo.offsetpath
importedmetafile = nextpath + '/' + METAFILENAME
}
def importedmetafile = nextpath + '/' + METAFILENAME
def boolean next
if (script.fileExists(importedmetafile)) {
script.echo("Deserialising meta at file: ${importedmetafile}")