diff --git a/platform/util-ex/src/com/intellij/util/io/path.kt b/platform/util-ex/src/com/intellij/util/io/path.kt index 6329f65c4491..1e38de0a7a24 100644 --- a/platform/util-ex/src/com/intellij/util/io/path.kt +++ b/platform/util-ex/src/com/intellij/util/io/path.kt @@ -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 {