fs2
fs2 copied to clipboard
Support glob patterns in fs2-io.js
Opening this issue to track and see if anybody wants it. We didn't support it initially, because it requires JDK APIs not implemented in Scala.js..
https://github.com/typelevel/fs2/blob/a5566a6ff56fcba4f50896fdb32d54541f9c9ba5/io/shared/src/main/scala/fs2/io/file/Files.scala#L40-L41
However, Scala Native has re-implemented globs in pure Scala. So in theory we should be able to inline that code and support it as well. Should be pretty easy, just a non-trivial amount of code to take on.
https://github.com/scala-native/scala-native/blob/b8e4dcc02c949716b51964f1e2f27453ff49a096/javalib/src/main/scala/java/nio/file/PathMatcherImpl.scala