Scoop API

scoop:scoop.platform:0.1.0

copyTo

function copyTo

source · line 41
public
public fun Path.copyTo(destination: Path, replaceExisting: Boolean = false): Long

Extension receiver: Path

Copies input to a destination and returns actual bytes transferred. Byte-source copies borrow both endpoints; path copies own their temporary handles and honor replaceExisting.