We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da7e31a commit 856392aCopy full SHA for 856392a
1 file changed
shared/src/main/kotlin/org/jetbrains/kotlin/konan/file/File.kt
@@ -152,10 +152,17 @@ data class File constructor(internal val javaPath: Path) {
152
153
val javaHome
154
get() = File(System.getProperty("java.home"))
155
-
+ val pathSeparator = java.io.File.pathSeparator
156
}
157
158
fun readStrings() = mutableListOf<String>().also { list -> forEachLine{list.add(it)}}
159
+
160
+ override fun equals(other: Any?): Boolean {
161
+ val otherFile = other as? File ?: return false
162
+ return otherFile.javaPath.toAbsolutePath() == javaPath.toAbsolutePath()
163
+ }
164
165
+ override fun hashCode() = javaPath.toAbsolutePath().hashCode()
166
167
168
fun String.File(): File = File(this)
0 commit comments