com.github.woojiahao.utility.extensions.FileExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kMD2PDF Show documentation
Show all versions of kMD2PDF Show documentation
Simple and highly customizable markdown to PDF conversion library
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 }