@Throws(Exception::class) fun prepareTestDir(logDirName: String?): File? { val logDir = File(logDirName) val path = FilePath(logDir.getAbsolutePath()) fileIO.delete(path, true) fileIO.mkdir(path) return logDir }
Create an empty test directory or if the directory exists remove any files within it .