- for (final File file : directory.listFiles())
- if (file.isDirectory()) {
- if (options.recursive)
- processDirectory(file);
- } else
- try {
- processFile(file);
- } catch (final IOException exception) {
- System.out.println("Error processing file: "
- + file.getAbsolutePath());
- System.out.println(" exception: "
- + exception.getMessage());
- }
+ for (final File file : directory.listFiles())
+ if (file.isDirectory()) {
+ if (options.recursive)
+ processDirectory(file);
+ } else
+ try {
+ processFile(file);
+ } catch (final IOException exception) {
+ System.out.println("Error processing file: "
+ + file.getAbsolutePath());
+ System.out.println(" exception: "
+ + exception.getMessage());
+ }