copyFile

open suspend override fun copyFile(sourcePath: String, targetPath: String)

Copies a file from the source path to the target path.

Parameters

sourcePath

The path of the source file.

targetPath

The path where the file will be copied to.

Throws

PowerSyncException

If an error occurs during the copy operation.

CancellationException

If the operation is cancelled.