generated from gCubeCI/Pipeline-Docker-Template
working on getComponentsFromCSVDir method
This commit is contained in:
parent
78a62bc9e3
commit
c2c8d56688
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue