source

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

Deprecated

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. The method will be removed in 0.4.0.