Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑包含一个空文件夹(称为empty_son_folder)和另一个非空文件夹(称为not_empty_son_folder)的文件夹(称为parent_folder)和以下exports_sources方法:
exports_sources = ["parent_folder*"]
仅导出 not_empty_son_folder。
柯南有没有办法强制在导出源方法中复制一个空文件夹?
正如@Yumnosch 所说,可以添加一个虚拟文件以强制柯南包含此文件夹或稍后在收据中创建此文件夹(@drodri 的解决方案)。
如果需要由某些测试程序生成文件,两种解决方案都可以。
也可以直接在需要的测试程序中创建这样的文件夹。