Commit 0ed0425f by Amelin Konstantin

add .xml .zip filter

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