copyToIgnoringExistingDirectory

JVM
JRE7
1.0
abstract fun Path.copyToIgnoringExistingDirectory(
    target: Path,
    followLinks: Boolean
): CopyActionResult

(source)

Copies the entry located by this path to the specified target path, except if both this and target entries are directories, in which case the method completes without copying the entry.

The entry is copied using this.copyTo(target, *followLinksOption). See kotlin.io.path.copyTo.

Parameters

target - the path to copy this entry to.

followLinks - false to copy the entry itself even if it's a symbolic link. true to copy its target if this entry is a symbolic link. If this entry is not a symbolic link, the value of this parameter doesn't make any difference.

Return CopyActionResult.CONTINUE