Sunday, 2 June 2013

Return the list of files from Groovy's eachFile() in reverse order

Return the list of files from Groovy's eachFile() in reverse order

I'm using eachFile(), but I'm trying to reverse the order that the iteration happens. How do I do that? Right now, it appears to sort the list of files and then process each one in sorted order. I essentially want to reserve-sort that list and start from the end.

No comments:

Post a Comment