Commit 0ed0425f by Amelin Konstantin

add .xml .zip filter

parent 8a1ed210
......@@ -37,7 +37,11 @@ object Main {
.asScala
.toStream
.filter {
p => !Files.isDirectory(p)
p =>
val name = p.getFileName.toString
val ext = name.split('.').last.toLowerCase
!Files.isDirectory(p) && ((ext == "xml") || (ext == "zip"))
}
val start = LocalDateTime.now.toString.replace(":", ".")
......@@ -75,6 +79,13 @@ object Main {
.iterator
.asScala
.toStream
.filter {
e =>
val name = e.getName
val ext = name.split('.').last.toLowerCase
ext == "xml"
}
.map {
e =>
FileEntry(
......
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