strikt-core / strikt.assertions / isRegularFile

isRegularFile

fun <T : File> Builder<T>.isRegularFile(): Builder<T>

Asserts that the file is a regular file.

See Also

File.isFile

fun <T : Path> Builder<T>.isRegularFile(vararg options: LinkOption = emptyArray()): Builder<T>

Asserts that the subject is a regular file, handling symbolic links according to the provided options.

Parameters

options - the options indicating how symbolic links are handled

See Also

Files.isRegularFile