toFilePathOrNull

fun String?.toFilePathOrNull(pathPredicate: (String) -> Boolean = { true }): String?