OnErrorResult

JVM
JRE7
1.0
@ExperimentalPathApi enum class OnErrorResult
(source)

The result of the onError function passed to Path.copyToRecursively that specifies further actions when an exception occurs.

Enum Values

JVM
JRE7
1.0

SKIP_SUBTREE

If the entry that caused the error is a directory, skip the directory and its content, and continue with the next entry outside this directory in the traversal order. Otherwise, skip this entry and continue with the next entry in the traversal order.

JVM
JRE7
1.0

TERMINATE

Stop the recursive copy function. The function will return without throwing exception. To terminate the function with an exception rethrow instead.