aboutsummaryrefslogtreecommitdiff
path: root/src/Utilities/Path.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utilities/Path.kt')
-rw-r--r--src/Utilities/Path.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Utilities/Path.kt b/src/Utilities/Path.kt
index 973163a8..292b0eed 100644
--- a/src/Utilities/Path.kt
+++ b/src/Utilities/Path.kt
@@ -1,6 +1,7 @@
package org.jetbrains.dokka
-import java.io.*
+import java.io.File
+import java.io.IOException
fun File.getRelativePath(name: File): File {
val parent = parentFile
@@ -12,7 +13,7 @@ fun File.getRelativePath(name: File): File {
val targetPath = name.canonicalPath;
if (targetPath.startsWith(basePath)) {
- return File(targetPath.substring(basePath.length()))
+ return File(targetPath.substring(basePath.length))
} else {
return File(".." + File.separator + parent.getRelativePath(name))
}