diff --git a/cli/src/main/scala/aqua/files/AquaFilesIO.scala b/cli/src/main/scala/aqua/files/AquaFilesIO.scala index 4a49ab0c..d40d9a6b 100644 --- a/cli/src/main/scala/aqua/files/AquaFilesIO.scala +++ b/cli/src/main/scala/aqua/files/AquaFilesIO.scala @@ -107,7 +107,8 @@ class AquaFilesIO[F[_]: Files: Concurrent] extends AquaIO[F] { } else { Files[F].isDirectory(folder).flatMap { isDir => if (isDir) { - Files[F].list(folder).compile.toList.map(Right(_)) + Files[F].list(folder).evalFilter(p => if (p.extName == ".aqua") true.pure[F] else Files[F].isDirectory(p)) + .compile.toList.map(Right(_)) } else { Right(folder :: Nil).pure[F] }