assertk / assertk.assertions / isFile

isFile

(jvm) fun Assert<File>.isFile(): Unit

Asserts the file is a simple file (not a directory).

See Also

isDirectory