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

optional accept tar files with unexpected EOF #1

Merged
merged 1 commit into from Aug 10, 2022

Conversation

commonism
Copy link

Hi,

when working with large datasets it is … convenient … to cut the tar files to size for development.
If the size choosen does not align with the format structure of the tar format, basically cutting in the middle of a file, tarfile does not accept the file, access fails.
Extending tarfile.Tarfile to accept premature EOF assists this use case.

@jotaf98 jotaf98 merged commit 5f8d232 into jotaf98:master Aug 10, 2022
@jotaf98
Copy link
Owner

jotaf98 commented Aug 10, 2022

This is a great (convenient) capability indeed, and well implemented -- thanks!

@commonism
Copy link
Author

Hi,

besides from cutting the tar to pieces, limiting the number of members read from the tar would be an option as well.
Interested?

@commonism commonism deleted the unexpectedeof branch August 19, 2022 06:39
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.

None yet

2 participants