Skip to content

Commit

Permalink
We should skip directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Sep 4, 2021
1 parent e52ccb2 commit fcd667a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# ImageGrinder

## [Unreleased]
### Fixed
- Skip directories (DOH!).

## [2.2.1] - 2021-09-04
### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ public void performAction() throws Exception {

WorkQueue queue = workerExecutor.noIsolation();
getSrcDir().get().getAsFileTree().visit(fileVisit -> {
if (fileVisit.isDirectory()) {
return;
}
logger.info("render: " + fileVisit.getRelativePath());
queue.submit(RenderSvg.class, params -> {
params.getSourceFile().set(fileVisit.getFile());
Expand Down

0 comments on commit fcd667a

Please sign in to comment.