骆驼文件2组件递归选项。如何删除空目录 [英] Camel File2 component with recursive option. How to remove empty directory

查看:198
本文介绍了骆驼文件2组件递归选项。如何删除空目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我设置递归=真放大器;删除= TRUE 骆驼文件2组件,它看起来到子目录。然而,然后文件处理它被删除,但目录中仍然存在。如何自动删除这些目录?是不是有这方面的任何选项。如果现在 - 或许这应该被添加到愿望清单到骆驼的问题跟踪

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?

推荐答案

这是不可能的。该文件组件只能删除该文件,没有任何目录。你将不得不自己删除该目录。

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

这篇关于骆驼文件2组件递归选项。如何删除空目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆