Camel File2 component with recursive option. How to remove empty directory

人盡茶涼 提交于 2019-12-12 04:35:10

问题


When I set recursive=true&delete=true for Camel File2 component it looks into subdirectories. However, then file is processed it gets removed, but directory still exists. How to automatically remove such directory? Isn't there any options for this. If now - probably this should be added to the wish-list into Camel issue tracking?


回答1:


This is not possible. The file component can only delete the file, not any directory. You will have to delete the directory yourself.



来源:https://stackoverflow.com/questions/18916397/camel-file2-component-with-recursive-option-how-to-remove-empty-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!