This documentation regards version 2.10.4+3-f7095f01-SNAPSHOT, however the current version is 2.10.4.
FileIO.toPath
Create a sink which will write incoming ByteString
s to a given file path.
Signature
Description
Creates a Sink which writes incoming ByteString
elements to the given file path. Overwrites existing files by truncating their contents as default. Materializes a Future
of IOResult
that will be completed with the size of the file (in bytes) at the streams completion, and a possible exception if IO operation was not completed successfully.