Skip to content

Commit

Permalink
Add check that file is a directory (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
steinybot committed Jul 29, 2024
1 parent 236bc13 commit ab30985
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object GlobWalker {
val builder = IndexedSeq.newBuilder[os.Path]

def processDirectoryAndSkip(dir: os.Path): Boolean =
if (matches(dir)) {
if (dir.toIO.isDirectory && matches(dir)) {
os.walk.stream(dir).generate { path =>
if (path.toIO.isFile) builder += path
Generator.Continue
Expand Down

0 comments on commit ab30985

Please sign in to comment.