public int updateAvatarBatch(File zipFile) { String tmpPath = System.getProperty("java.io.tmpdir") + "/avatar/"; logger.debug("unzip avatar to {}", tmpPath); ZipUtils.unzip(zipFile, tmpPath); File tmpAvatar = new File(tmpPath); int count = updateFile(tmpAvatar); logger.debug("removing avatar tmp path {}", tmpPath); tmpAvatar.delete(); return count; }