From b8f2435e2db50c2053a9d880ab9573cb0bc2630e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 21 Oct 2015 18:26:10 +0200 Subject: M15 code cleanup --- src/Utilities/Path.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Utilities') 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)) } -- cgit