19 lines
330 B
Kotlin
Vendored
19 lines
330 B
Kotlin
Vendored
package test
|
|
|
|
import java.io.File
|
|
|
|
/**
|
|
* User: ignatov
|
|
*/
|
|
object Test {
|
|
fun isDir(parent: File?): Boolean {
|
|
if (parent == null || !parent.exists()) {
|
|
return false
|
|
}
|
|
val result = true
|
|
if (parent.isDirectory) {
|
|
return true
|
|
} else
|
|
return false
|
|
}
|
|
} |