println "Checking folder: ${folder?.absolutePath}" println "File count: ${folder.listFiles()?.size()...