Skip to content
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

Add support for files with periods in name #4099

Merged
merged 2 commits into from Jun 23, 2021

Conversation

adamjstewart
Copy link
Contributor

Previously, files like foo.bar.zip or foo.bar.tar.gz could not be extracted. This PR adds support for files with periods in their name.

Examples of datasets like this include:

This is a follow-up to #3443

@pmeier @calebrob6

Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Hey @adamjstewart, thanks for the PR! I have two comments inline.

torchvision/datasets/utils.py Show resolved Hide resolved
torchvision/datasets/utils.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @adamjstewart!

@pmeier pmeier requested a review from NicolasHug June 23, 2021 15:07
Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks @adamjstewart and @pmeier for the review!

@NicolasHug NicolasHug merged commit d1ab583 into pytorch:master Jun 23, 2021
@adamjstewart adamjstewart deleted the features/suffixes branch June 23, 2021 15:35
facebook-github-bot pushed a commit that referenced this pull request Jun 25, 2021
Reviewed By: NicolasHug

Differential Revision: D29369896

fbshipit-source-id: c3de547efcfef93bcd66bdeb249178cfe39538e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants