Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isParentOf (0.1 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/IO.kt

    import java.io.File
    
    
    internal
    fun userHome() = File(System.getProperty("user.home"))
    
    
    inline fun <T : AutoCloseable, U> T.useToRun(action: T.() -> U): U =
        use { run(action) }
    
    
    internal
    fun File.isParentOf(child: File): Boolean =
        child.canonicalPath.startsWith(canonicalPath)
    
    
    /**
     * List files ordered by filename for reproducibility.
     * Never returns null.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:27 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top