davsclaus opened a new pull request, #24503:
URL: https://github.com/apache/camel/pull/24503

   ## Summary
   
   _Claude Code on behalf of davsclaus_
   
   - Enhanced the `preSort` option on file-based consumers (File, FTP, FTPS, 
SFTP, Azure Files, SMB) from a `boolean` to a `String` supporting `name`, 
`modified`, `size` (and `-name`, `-modified`, `-size` for descending). 
`true`/`false` remain backward compatible.
   - This allows combining `preSort=modified` with 
`eagerMaxMessagesPerPoll=true` and `maxMessagesPerPoll=N` to efficiently 
consume the N oldest (or newest) files without creating Exchange objects for 
every file on the server.
   - Added unit test and upgrade guide entry.
   
   Fixes: https://issues.apache.org/jira/browse/CAMEL-23931
   
   ## Test plan
   
   - [x] `SftpPreSortTest` — 10 test cases verifying URI parsing of all preSort 
values
   - [x] Full `camel-file` test suite passes
   - [x] Full `camel-ftp` test suite passes
   - [x] All generated metadata (catalog JSON, endpoint configurers, endpoint 
DSL) regenerated and verified
   
   🤖 Generated with [Claude Code](https://claude.ai/code)
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to