working on getComponentsFromCSVDir method

This commit is contained in:
Roberto Cirillo 2022-09-16 10:06:53 +02:00
parent 78a62bc9e3
commit c2c8d56688
1 changed files with 7 additions and 1 deletions

8
Jenkinsfile vendored
View File

@ -322,13 +322,15 @@ def getComponentsFromCSVDir(def dirPath){
}
def getComponentsFromCSVDir2(def dirPath){
File folder = new File(dirPath)
def list = []
def folder = new File(dirPath)
println ("folder ready ");
if (folder){
println (" processing folder "+folder);
folder.eachFileRecurse( FileType.FILES) {
if (it.name.endsWith(".csv")) {
println ("Processing file "+it);
list << it
readFile(it).split('\n').each { line, count->
if (line.startsWith('#'))
return
@ -346,6 +348,10 @@ def getComponentsFromCSVDir2(def dirPath){
// file.delete();
}
}
println "files to remove:";
list.each {
println it.path
}
return components
}