-
Notifications
You must be signed in to change notification settings - Fork 0
08-Zip #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
08-Zip #8
Conversation
yurii-litvinov
left a comment
There was a problem hiding this 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())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лучше было проверять по расширению, а ловить исключение только в том случае, если файл .zip, но zip-архивом не является. При корректной работе программы исключения вообще не должны кидаться, а мне кажется, иметь в папке не только zip-архивы вполне ожидаемо.
No description provided.