Create a sink which will write incoming ByteString s to a given file path.

File IO Sinks and Sources


def toPath(f: Path, options: Set[OpenOption] = Set(WRITE, TRUNCATE_EXISTING, CREATE)): Sink[ByteString, Future[IOResult]]
def toPath(f: Path, options: Set[OpenOption], startPosition: Long): Sink[ByteString, Future[IOResult]]
Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.