Skip to content

Commit 16861a5

Browse files
committed
Add check that file is a directory (#638)
1 parent 73a34dc commit 16861a5

File tree

1 file changed

+1
-1
lines changed
  • importer-portable/src/main/scala/org/scalablytyped/converter/internal/importer

1 file changed

+1
-1
lines changed

importer-portable/src/main/scala/org/scalablytyped/converter/internal/importer/GlobWalker.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ object GlobWalker {
3131
val builder = IndexedSeq.newBuilder[os.Path]
3232

3333
def processDirectoryAndSkip(dir: os.Path): Boolean =
34-
if (matches(dir)) {
34+
if (dir.toIO.isDirectory && matches(dir)) {
3535
os.walk.stream(dir).generate { path =>
3636
if (path.toIO.isFile) builder += path
3737
Generator.Continue

0 commit comments

Comments
 (0)