=htc, doc replace usages of deprecated methods of FileIO (#20928)

This commit is contained in:
Nafer Sanabria 2016-07-10 10:41:57 -05:00 committed by Konrad Malawski
parent c81ea4f36b
commit 32810e1f1d
12 changed files with 34 additions and 26 deletions

View file

@ -35,7 +35,7 @@ class FileUploadExamplesSpec extends RoutingSpec {
// stream into a file as the chunks of it arrives and return a future
// file to where it got stored
val file = File.createTempFile("upload", "tmp")
b.entity.dataBytes.runWith(FileIO.toFile(file)).map(_ =>
b.entity.dataBytes.runWith(FileIO.toPath(file.toPath)).map(_ =>
(b.name -> file))
case b: BodyPart =>