{
  "id": "go/os-file-already-exists",
  "signature": "error: mkdir /path/dir: file exists",
  "signature_zh": "错误：mkdir /path/dir：文件已存在",
  "regex": "error:\\ mkdir\\ /path/dir:\\ file\\ exists",
  "domain": "go",
  "category": "io_error",
  "subcategory": null,
  "root_cause": "Attempting to create a directory that already exists, without checking for its existence first.",
  "root_cause_type": "generic",
  "root_cause_zh": "尝试创建已存在的目录，而未先检查其是否存在。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Ignoring error and continuing",
      "why_fails": "May lead to inconsistent state; always handle properly.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use os.MkdirAll which does not error if exists",
      "success_rate": 0.98,
      "how": "if err := os.MkdirAll(path, 0755); err != nil { return err }",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-08-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}