Skip to content

Conversation

@Ivan-Veselov
Copy link
Owner

No description provided.

Copy link
Collaborator

@yurii-litvinov yurii-litvinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В архивах файлы с одинаковыми именами в разных регистрах, поэтому тесты под виндой не работают :)

new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
try (ZipFile archive = new ZipFile(file.toFile())) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше было проверять по расширению, а ловить исключение только в том случае, если файл .zip, но zip-архивом не является. При корректной работе программы исключения вообще не должны кидаться, а мне кажется, иметь в папке не только zip-архивы вполне ожидаемо.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants