mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Utilities: add utility function to conveniently resolve relative Paths, use it throughout the code.
GitOrigin-RevId: 8436a171eb515c0437b49a844867280edbc2096d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1e49ef0be9
commit
2187536265
@@ -16,6 +16,10 @@ import java.nio.file.attribute.BasicFileAttributes
|
||||
import java.nio.file.attribute.FileTime
|
||||
import kotlin.math.min
|
||||
|
||||
operator fun Path.div(x: String): Path = resolve(x)
|
||||
|
||||
operator fun File.div(x: String): File = File(this, x)
|
||||
|
||||
fun Path.exists(): Boolean = Files.exists(this)
|
||||
|
||||
fun Path.createDirectories(): Path {
|
||||
|
||||
Reference in New Issue
Block a user