← 返回
安全合规 中文

Folders

Index important directories and perform safe folder operations with proper security checks.
索引重要目录,并通过适当的安全检查执行安全的文件夹操作。
ivangdavila
安全合规 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 2
Stars
📥 1,357
下载
💾 22
安装
1
版本
#latest

概述

Folder Index

Maintain a lightweight index at ~/.config/folder-index.json to know where important things are without rescanning.

{
  "folders": [
    {"path": "/Users/alex/projects/webapp", "type": "project", "note": "Main client project"}
  ]
}

When user asks "where is X" or "find my project Y", check the index first. If not found, do targeted discovery then offer to add the result.

Discovery

When asked to find or index folders:

  • Scan likely locations: ~/projects, ~/Documents, ~/code, ~/dev, ~/work
  • Detect projects by markers: .git, package.json, pubspec.yaml, Cargo.toml, go.mod, pyproject.toml, *.sln
  • Stop at first marker (don't recurse into node_modules, vendor, build)
  • Propose what was found, don't auto-add: "Found 8 projects in ~/code. Add to index?"

Path Security

  • Canonicalize paths (resolve ~, .., symlinks) before any operation
  • Reject system paths: /, /etc, /var, /usr, /System, /Library, C:\Windows, C:\Program Files
  • Skip symlinks during traversal, report them separately

Destructive Operations

  • Use OS trash instead of permanent delete
  • State recoverability: "node_modules: recoverable with npm install"
  • Build artifacts safe to delete: node_modules, __pycache__, .gradle, build/, target/, Pods/, .next/

Platform Quirks

  • macOS: .DS_Store alone = effectively empty. Treat .app as single item.
  • Windows: Paths >260 chars need \\?\ prefix.
  • Network drives: Warn before bulk ops — may be slow or offline.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 23:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,478
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,418
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,713