source

@JvmName(name = "sourceDeprecated")
fun Path.source(): Source(source)

Deprecated (with error)

Use FileSystem.source instead

Replace with

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

Returns RawSource for the given file or throws if path is not a file or does not exist

Use of this method is deprecated with warning since kotlinx-io 0.3.0, with error since 0.8.0, and it will be removed in the future.