sink

@JvmName(name = "sinkDeprecated")
fun Path.sink(): Sink(source)

Deprecated

Use FileSystem.sink instead

Replace with

import kotlinx.io.files.FileSystem
SystemFileSystem.sink(this).buffered()

Returns RawSink for the given path, creates file if it doesn't exist, throws if it's a directory, overwrites contents.

Use of this method is deprecated with warning since kotlinx-io 0.3.0. The method will be removed in 0.6.0.