srikanth-lingala / zip4j

A Java library for zip files and streams
Apache License 2.0
2.09k stars 313 forks source link

add newFileNameMap for zipFile.extractAll #544

Open nonameShijian opened 6 months ago

nonameShijian commented 6 months ago
Map<String, String> fixFileHeaders = new HashMap<>();
fixFileHeaders.put(fileHeader.getFileName(), newName);
zipFile.extractAll(filePath, fixFileHeaders);