Commit 06/08/2025
This commit is contained in:
@@ -1,9 +1,23 @@
|
||||
package somecodes
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper
|
||||
import java.io.File
|
||||
|
||||
@Suppress("unused")
|
||||
class Codes {
|
||||
|
||||
private val objectMapper = ObjectMapper()
|
||||
companion object{
|
||||
|
||||
fun ValidFile(s: String?) : Boolean {
|
||||
if (s!=null){
|
||||
if (ValidString(s)){
|
||||
val ff = File(s)
|
||||
return ff.isFile
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
fun ValidString(s : String?) : Boolean {
|
||||
return s != null && s.isNotEmpty() && s.isNotBlank()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user