We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
File
1 parent ba4a6a8 commit e8bbb85Copy full SHA for e8bbb85
utils/common/src/main/kotlin/FileUtils.kt
@@ -182,3 +182,13 @@ fun String.expandTilde(): String =
182
} else {
183
this
184
}
185
+
186
+/**
187
+ * A convenience operator to resolve [relativePath] against this file.
188
+ */
189
+operator fun File.div(relativePath: File): File = resolve(relativePath)
190
191
192
193
194
+operator fun File.div(relativePath: String): File = resolve(relativePath)
0 commit comments