kotlin.io.java.io.File.relativeToOrNull

relativeToOrNull

fun File.relativeToOrNull(base: File): File?

Platform and version requirements: JVM

Calculates the relative path for this file from base file. Note that the base file is treated as a directory. If this file matches the 登录查看完整内容