summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/repo
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-07-06 08:08:52 +0200
committerGitHub <noreply@github.com>2024-07-06 08:08:52 +0200
commit7b3ed85d171c156f895fdbaeff4d18572fc0f18e (patch)
tree0bbfeca0a796bdd6494548f9f161edbc7fb6b700 /src/main/java/at/hannibal2/skyhanni/data/repo
parent34ba8c5fb8304e7b568822f8d3f675a0f133c6da (diff)
downloadskyhanni-7b3ed85d171c156f895fdbaeff4d18572fc0f18e.tar.gz
skyhanni-7b3ed85d171c156f895fdbaeff4d18572fc0f18e.tar.bz2
skyhanni-7b3ed85d171c156f895fdbaeff4d18572fc0f18e.zip
Backend: Fixed typos everywhere (#2175)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/repo')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt8
1 files changed, 4 insertions, 4 deletions
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,
)
}
}