Skip to content

Commit 8621c12

Browse files
author
MohitMaliFtechiz
committed
Renamed renameFolders method to removeDateFromFolderName for better nameing
1 parent b59d6a8 commit 8621c12

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import java.nio.file.Paths
12
import java.util.stream.Collectors
23

34
plugins {
@@ -113,7 +114,7 @@ task unzipLibzim(type: Copy) {
113114
}
114115

115116
task renameLibzimFolders() {
116-
renameFolders(buildDir.path,"libzim_")
117+
removeDateFromFolderName(buildDir.path,"libzim_")
117118
}
118119

119120
task copyLibzimHeaderAndSoFiles(type: Copy) {
@@ -177,10 +178,10 @@ task downloadLibkiwixSoAndHeaderFiles(type: Download) {
177178
}
178179

179180
task renameLibkiwixFolders() {
180-
renameFolders(buildDir.path,"libkiwix_")
181+
removeDateFromFolderName(buildDir.path,"libkiwix_")
181182
}
182183

183-
static void renameFolders(String path, String startWith) {
184+
static void removeDateFromFolderName(String path, String startWith) {
184185
File directory = new File(path)
185186
if (directory.exists() && directory.isDirectory()) {
186187
Arrays.stream(directory.listFiles())

0 commit comments

Comments
 (0)