diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-21 18:26:10 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-21 18:26:10 +0200 |
commit | b8f2435e2db50c2053a9d880ab9573cb0bc2630e (patch) | |
tree | 55274c5b5e67191e32983559ffb8ea15c0c4df86 /src/Utilities | |
parent | 8827d30048b9c50f47e62f69baf774363fdebc5d (diff) | |
download | dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.gz dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.tar.bz2 dokka-b8f2435e2db50c2053a9d880ab9573cb0bc2630e.zip |
M15 code cleanup
Diffstat (limited to 'src/Utilities')
-rw-r--r-- | src/Utilities/Path.kt | 5 |
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)) } |