isDirectorySafely

fun <Error class: unknown class>.isDirectorySafely(default: Boolean = false): Boolean

Extension method to check if a file is a directory without throwing an exception, except CancellationException to cancel parent jobs.

Return

whether the file is a directory.