Commit 803bf261 by Amelin Konstantin

Add not Directory check in zip entries

parent 5612cb33
......@@ -43,6 +43,7 @@ object Main {
while (fZipEntries.hasMoreElements) {
val e = fZipEntries.nextElement
if (!e.isDirectory) {
val fZipEntryName = e.getName
val nowForZip = LocalDateTime.now().toString
......@@ -61,6 +62,7 @@ object Main {
case Failure(ex) => logString += s"'$nowForZip\nImpossible to convert'${fSourceNameBase}_$fZipEntryName': ${ex.getMessage}\n\n"
}
}
}
} match {
case Success(_) =>
case Failure(ex) => logString += s"'$now\nImpossible to convert'$fSourceName': ${ex.getMessage}\n\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment