diff --git a/downloader/download_json.js b/downloader/download_json.js index 8f6a2f5..5661bdf 100644 --- a/downloader/download_json.js +++ b/downloader/download_json.js @@ -98,9 +98,8 @@ async function downloadFromData(jsonUrl) { const jsonRes = await fetch(jsonUrl); // prettier-ignore const parsed = /** @type {{ dataset: Dataset[] }} */(await jsonRes.json()) - await writeFile(join(outputPath, "data.json"), JSON.stringify(parsed)); - await mkdir(outputPath, { recursive: true }); + await writeFile(join(outputPath, "data.json"), JSON.stringify(parsed)); await writeFile(join(outputPath, "url.txt"), jsonUrl); const errorFile = ( await open(join(outputPath, "errors.jsonl"), "w")