{"version":"2.1.234","anchor":"gateway-and-model-capability-caches-create-their-directory-b","canonical_anchor":"gateway-and-model-capability-caches-create-their-directory-b","heading":"Gateway and model-capability caches create their directory before writing","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.234\/e\/gateway-and-model-capability-caches-create-their-directory-b","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.234","markdown":"### Gateway and model-capability caches create their directory before writing\n\nFirst runs no longer fail when the gateway and model-capability cache folders don't exist yet.\n\n**What**\n\nBoth caches now create their folder (recursively) before writing, so a first run on a machine without the directory no longer fails on the write.\n\n**Details**\n\n- If the directory cannot be created, the writer logs and gives up rather than attempting the write; gateway discovery logs \"[gatewayDiscovery] cache folder could not be made\".\n- Both writers also publish the file in place.\n\n**Evidence**\n\n`[gatewayDiscovery] cache folder could not be made`\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}