parentSafely

fun <Error class: unknown class>.parentSafely(): <Error class: unknown class>?

Extension method to get the parent of a file exists without throwing an exception, except CancellationException to cancel parent jobs.

Return

the parent File or null.