isDirectory

abstract fun isDirectory(): Boolean(source)

Returns true if this element is a directory, or false if this element is a regular file.

Return

true if this element is a directory.