I'm looking to add some file output to my akka streams project I see that there is a FileIO.toFile method which creates a sink which is presumably non-blocking
But I need to create directories on the fly as well. Is there any help here? Anything new in 2.4.2-RC1? I assume the mkdirs call in the snippet below is blocking. val file = new File("dump/x/jan.txt") val ready: Boolean = file.getParentFile().mkdirs() val fileSink = FileIO.toFile(file, false) val source = Source(List("one", "two", "three", "four")).map { e => println(e); ByteString(e) } val r = source.runWith(fileSink) r.onComplete { x => println(x) } -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.