Skip to content

Commit

Permalink
Avoid treating a directory file as a file
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbrooks committed Jul 27, 2024
1 parent 572b8a2 commit 1460ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vgo/src/main/kotlin/com/jzbrooks/vgo/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class Application {
assert(input.isDirectory)
assert(output.isDirectory || !output.exists())

for (file in input.walkTopDown().filter { file -> !file.isHidden }) {
for (file in input.walkTopDown().filter { file -> !file.isHidden && !file.isDirectory }) {
handleFile(file, File(output, file.name), options)
}

Expand Down

0 comments on commit 1460ad7

Please sign in to comment.