def get_file_meta(self, view, root_domain, soa):
        file_meta = {}
        rel_zone_dir = self.calc_target(root_domain, soa)
        file_meta['fname'] = self.calc_fname(view, root_domain)
        file_meta['rel_fname'] = os.path.join(rel_zone_dir, file_meta['fname'])
        file_meta['prod_fname'] = os.path.join(self.PROD_DIR,
                                               file_meta['rel_fname'])
        file_meta['bind_fname'] = os.path.join(self.BIND_PREFIX,
                                               file_meta['rel_fname'])
        return file_meta
This function trys to pull all file login into one place.
dataset/ETHPy150Open mozilla/inventory/mozdns/mozbind/builder.py/DNSBuilder.get_file_meta