We could add an option in the ZipFileDataFormat to let the iterator support
the empty directory.
Please feel free to log a JIRA[1] for it.

[1]https://issues.apache.org/jira/browse/CAMEL


Willem Jiang

Blog: http://willemjiang.blogspot.com (English)
          http://jnn.iteye.com  (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem

On Mon, Feb 6, 2017 at 5:03 AM, zhurlik <zhur...@gmail.com> wrote:

> Hi,
> I am dealing with *.odt/*.ott file as a zip file using *camel-zipfile*
> component and faced with an issue.
> I am looking at  ZipFileDataFormat.java
> <https://github.com/apache/camel/blob/master/components/
> camel-zipfile/src/main/java/org/apache/camel/dataformat/
> zipfile/ZipFileDataFormat.java>
> that uses  ZipIterator.java
> <https://github.com/apache/camel/blob/master/components/
> camel-zipfile/src/main/java/org/apache/camel/dataformat/
> zipfile/ZipIterator.java>
> but in the line 130
> <https://github.com/apache/camel/blob/master/components/
> camel-zipfile/src/main/java/org/apache/camel/dataformat/
> zipfile/ZipIterator.java#L130>
> I see that ZipIterator skips empty directories in the zip file (in my case
> *.odt/*.ott).
>
> Is it possible to have an ability to handle this case via options in either
> ZipFileDataFormat or ZipIterator to be able to say when I want to go
> through
> all entities in the zip file, I mean files and folders.
>
> _____________________
> Thanks,
>  Vlad
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/camel-zipfile-tp5793495.html
> Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to