8000 Fix zip handling of osx hidden dirs by kierstenarnold-fw · Pull Request #9571 · cvat-ai/cvat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix zip handling of osx hidden dirs #9571

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kierstenarnold-fw
Copy link

Motivation and context

It looks like zip files sometimes (always?) get categorized as 'archive' and are handled by the ArchiveReader rather than the ZipReader. Add osx hidden dir checking to ArchiveReader as well.

This is done through ArchiveReader's parent class DirectoryReader for ease of implementation. I can't think of a reason why we wouldn't want to ignore these dirs; so at best we catch junk directories that could show up in other archive types and at worst there's a small overhead of string comparisons.

How has this been tested?

I didn't see any existing tests of ZipReader's filtering logic and I didn't see an easy way to add a test for this. I tested these changes locally in a running server and verified an osx compressed archive gets processed to all expected images. Also verified there's no regressions in existing tests.

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

It looks like zip files sometimes (always?) get categorized as
'archive' and are handled by the ArchiveReader rather than the
ZipReader. Add osx hidden dir checking to ArchiveReader as well.
Copy link

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.

1 participant
0