{
  "id": "go/os-file-not-found-with-permission-denied",
  "signature": "error: open /path/file: no such file or directory",
  "signature_zh": "错误：打开 /path/file：没有那个文件或目录",
  "regex": "error:\\ open\\ /path/file:\\ no\\ such\\ file\\ or\\ directory",
  "domain": "go",
  "category": "io_error",
  "subcategory": null,
  "root_cause": "Attempting to open a file that does not exist at the specified path, possibly due to typo or missing directory.",
  "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": "Using absolute path incorrectly",
      "why_fails": "Hardcoding absolute paths breaks portability; relative paths may work.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check file existence before opening and use filepath.Join for path construction",
      "success_rate": 0.95,
      "how": "if _, err := os.Stat(filepath.Join(dir, filename)); os.IsNotExist(err) { return err }\nf, err := os.Open(filepath.Join(dir, filename))",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}