com.github.woojiahao.utility.extensions.FileExtensions.kt Maven / Gradle / Ivy
package com.github.woojiahao.utility.extensions
import java.io.File
/**
* Returns the target file has an extension that matches any of
* the supplied [fileTypes].
*/
fun File.isFileType(vararg fileTypes: String) = fileTypes.any { extension == it }