isValid

fun isValid(file: File): Boolean

Checks whether the parameter is an actual file part of this file type

Return

true or false whether this is a valid file type of this

Parameters

file

The file to check


fun isValid(path: Path): Boolean

Calls isValid but turns path object into a File object