in caches-cleanup-plugin-agent/src/main/kotlin/github/nskvortsov/teamcity/cleanup/SimpleCleanerProviders.kt [154:164]
override fun run() {
log.debug("Removing ${dir.absolutePath}")
if (removeRoots) {
FileUtil.delete(dir)
} else {
val files = dir.listFiles() ?: return
for (file in files) {
FileUtil.delete(file)
}
}
}