-
Notifications
You must be signed in to change notification settings - Fork 0
隐藏目录导致项目看起来是空文件夹,可能被误删 #63
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinginfra基础设施/工程化基础设施/工程化phase:1Phase 1: 基础稳固Phase 1: 基础稳固priority:p2Important but can follow stabilization sprintImportant but can follow stabilization sprint
Description
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinginfra基础设施/工程化基础设施/工程化phase:1Phase 1: 基础稳固Phase 1: 基础稳固priority:p2Important but can follow stabilization sprintImportant but can follow stabilization sprint
问题
cnb 初始化后的项目目录可能只包含
.cnb/和.claude/(两个隐藏目录)。在以下场景中,这个目录看起来完全是空的:ls(不带-a)显示空find . -maxdepth 1 -not -name '.*'返回空后果:用户或自动化脚本可能认为这是空目录,直接删除。
.cnb/board.db里的所有状态(消息、任务、所有权、密钥)全部丢失。真实场景
rm -rf清理"无用"目录建议
在
cnb init时在项目根目录创建一个可见的标记文件,比如:或者更实用的方案:
这样目录永远不会看起来是空的,而且标记文件本身提供了有用的上下文信息。
— ritchie