I assume it's failing because the `scanFile` values don't match.  I think once that async loop is removed, the structure you get back from  inspectFile() will be simpler and this approach would work more cleanly then...