Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SPB_Exchange_Repo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Amelin Konstantin
SPB_Exchange_Repo
Commits
803bf261
Commit
803bf261
authored
Dec 21, 2018
by
Amelin Konstantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add not Directory check in zip entries
parent
5612cb33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/main/scala/Main.scala
+2
-0
No files found.
src/main/scala/Main.scala
View file @
803bf261
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment