rnetuka opened a new pull request, #7761: URL: https://github.com/apache/camel/pull/7761
Issue: https://issues.apache.org/jira/browse/CAMEL-17130 Changes: 1. There are simple Java IO -> NIO upgrades such as replace File usage with Path (in places it actually helps and doesn't make the code less readable) 2. FileConsumer - changed pollDirectory() and listFiles() methods to stream processing 3. FileResumeSet - completely rewritten to suit the stream processing above 4. FileUtils - some methods oveloads for Path for convenient usage Notes: - I've kept File as a class that is being transferred in an Exchange. I tried to replace it with Path, but run into problems with converters. If it makes sence, we can add this change in a next step - the changes might not handle corner cases well, since for example File#getName() might return an empty string and Path#getFileName() return null in the same case. I suppose this doesn't pose much problem so I left it as it is. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org