{
  "id": "go/os-dir-not-empty",
  "signature": "error: remove /tmp/dir: directory not empty",
  "signature_zh": "error: 删除 /tmp/dir: 目录非空",
  "regex": "error:\\ remove\\ /tmp/dir:\\ directory\\ not\\ empty",
  "domain": "go",
  "category": "io_error",
  "subcategory": null,
  "root_cause": "尝试使用 os.Remove 删除非空目录，但该函数只支持删除空目录。",
  "root_cause_type": "generic",
  "root_cause_zh": "os.Remove 不能递归删除，目录中仍有文件或子目录时失败。",
  "versions": [
    {
      "version": "1.19",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "RemoveAll 可能部分删除，忽略错误导致状态不一致",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "子目录递归未处理",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "使用 os.RemoveAll 并检查返回值",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "遍历目录并递归删除所有内容",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-09",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}