From 7b3ed85d171c156f895fdbaeff4d18572fc0f18e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sat, 6 Jul 2024 08:08:52 +0200 Subject: Backend: Fixed typos everywhere (#2175) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data/repo') diff --git a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt index 1e9af5d69..74241946f 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt @@ -28,8 +28,8 @@ object RepoUtils { /** * Modified from https://www.journaldev.com/960/java-unzip-file-example */ - fun unzipIgnoreFirstFolder(zipFilePath: String, destDir: String) { - val dir = File(destDir) + fun unzipIgnoreFirstFolder(zipFilePath: String, destinationDirectory: String) { + val dir = File(destinationDirectory) // create output directory if it doesn't exist if (!dir.exists()) dir.mkdirs() val fis: FileInputStream @@ -43,7 +43,7 @@ object RepoUtils { if (!ze.isDirectory) { var fileName = ze.name fileName = fileName.substring(fileName.split("/").toTypedArray()[0].length + 1) - val newFile = File(destDir + File.separator + fileName) + val newFile = File(destinationDirectory + File.separator + fileName) // create directories for sub directories in zip File(newFile.parent).mkdirs() if (!isInTree(dir, newFile)) { @@ -71,7 +71,7 @@ object RepoUtils { e, "unzipIgnoreFirstFolder failed", "zipFilePath" to zipFilePath, - "destDir" to destDir, + "destinationDirectory" to destinationDirectory, ) } } -- cgit