Closed abarsov closed 6 years ago
It seems the reason is that FileModeMapper.map(entry, file); is called in CommonsArchiveEntry#extract before file was actually extracted.
FileModeMapper.map(entry, file);
@Override public File extract(File destination) throws IOException, IllegalStateException, IllegalArgumentException { assertState(); IOUtils.requireDirectory(destination); File file = new File(destination, entry.getName()); FileModeMapper.map(entry, file); if (entry.isDirectory()) { file.mkdirs(); } else { file.getParentFile().mkdirs(); IOUtils.copy(stream, file); } return file; }
great catch, thank you. should be fixed and deployed in 0.8.0-SNAPSHOT
It seems the reason is that
FileModeMapper.map(entry, file);
is called in CommonsArchiveEntry#extract before file was actually extracted.