Skip to content

Commit

Permalink
Add check that file is a directory (ScalablyTyped#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
steinybot committed Aug 7, 2024
1 parent 73a34dc commit 16861a5
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 16861a5

Please sign in to comment.