I’m looking for an API to move/copy and rename files based on rulesets. Is there a better way than using only java.io and regexp?
Background: I want to write a small program to convert files (images) between different similar tools, but they all have different folder structures and different filenaming rules.
Ant knows to do this very well. Why not to write a task for ant that does what you want and use Ant filter for file filtering? Take a look on http://ant.apache.org/manual/Tasks/filter.html