-2
我只想打印未位於SS文件如何不equalto使用在Groovy在這種情況下
def folder = "./test-data"
// println "reading files from directory '$folder'"
def basedir = new File(folder)
basedir.traverse {
if (it.isFile()) {
def rec = it
// println it
def ss = rec.toString().substring(12)
if(!allRecords contains(ss)) {
println ss
}
}
'allRecords'包含什麼? –