copyFile

Copies the file from srcPath to destPath. If srcPath is a directory, its contents including hidden files are copied. Returns true if the copy is successful, otherwise false.

common
fun copyFile(srcPath: String, destPath: String): Boolean
fun copyFile(srcPath: String, destPath: String): Boolean
fun copyFile(srcPathComponent: PathComponent, destPathComponent: PathComponent): Boolean
fun copyFile(srcPath: String, destPath: String): Boolean
fun copyFile(srcPathComponent: PathComponent, destPathComponent: PathComponent): Boolean

Copies the file from srcPathComponent to destPathComponent. If srcPathComponent is a directory, its contents including hidden files are copied. Returns true if the copy is successful, otherwise false.

common
fun copyFile(srcPathComponent: PathComponent, destPathComponent: PathComponent): Boolean