{"draft":null,"from":16,"to":17,"files":[{"path":"client/src/blobs.ts","added":3,"removed":3,"diff":"--- a/client/src/blobs.ts\n+++ b/client/src/blobs.ts\n@@ -7,8 +7,8 @@\n import { createHash } from \"node:crypto\";\n import { readFileSync, statSync } from \"node:fs\";\n import { join } from \"node:path\";\n-import { AVCS_DIR } from \"./config.ts\";\n import { writeFileAtomic } from \"./folder.ts\";\n+import { stateDir } from \"./state-dir.ts\";\n \n /** The server's limit for one file's bytes. */\n export const MAX_BLOB_BYTES = 20 * 1024 * 1024;\n@@ -47,7 +47,7 @@\n export function readKnownBlobs(root: string): Map<string, string> {\n \ttry {\n \t\treturn new Map(\n-\t\t\tObject.entries(JSON.parse(readFileSync(join(root, AVCS_DIR, BLOBS_FILE), \"utf8\")) as Record<string, string>),\n+\t\t\tObject.entries(JSON.parse(readFileSync(join(stateDir(root), BLOBS_FILE), \"utf8\")) as Record<string, string>),\n \t\t);\n \t} catch {\n \t\treturn new Map();\n@@ -56,7 +56,7 @@\n \n export function writeKnownBlobs(root: string, blobs: ReadonlyMap<string, string>): void {\n \tconst sorted = Object.fromEntries([...blobs].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)));\n-\twriteFileAtomic(join(root, AVCS_DIR, BLOBS_FILE), `${JSON.stringify(sorted, null, 1)}\\n`);\n+\twriteFileAtomic(join(stateDir(root), BLOBS_FILE), `${JSON.stringify(sorted, null, 1)}\\n`);\n }\n \n /** Short form of a hash for people: the first 12 hex digits. */"}],"unmatched":[]}