isDirectory

abstract fun isDirectory(path: Path): Boolean(source)

Return

true if the path refers to a directory that contains 0 or more child paths.