cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
5.53k stars 1.58k forks source link

Don't generate .meta for empty folders #14564

Open shrinktofit opened 1 year ago

shrinktofit commented 1 year ago

Empty folders may be generated frequently. Tracking empty folders make no sence. for example, during git branch switching, the .meta is generated but folders are not tracking by git.

a1076559139 commented 2 weeks ago

空文件夹不是完全没有意义,在规范目录结构时,有些文件夹确实没有用到是空的,但是不能没有。 我认为如果你不想空文件夹生成.meta,那可能说明你不需要这个文件夹,那为什么不删除? 不删除的话,最后岂不会导致每个人的本地项目目录都有不同的垃圾目录?

结论:我认为空文件夹生成.meta有必要,能保证目录结构统一