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

Recognise empty tar archives. #409

Merged

Conversation

Quogu
Copy link

@Quogu Quogu commented Aug 17, 2018

Currently, when ArchiveFactory.Open is called on an empty tar archive, it throws due to being unable to determine the stream type. This fix allows it to recognise empty tar files by checking for whether the filename is empty, the size is empty and the entry type is defined. Add a test to try opening an empty archive.

Currently, when ArchiveFactory.Open is called on an empty tar archive, it throws due to being unable to determine the stream type. This fix allows it to recognise empty tar files by checking for whether the filename is empty, the size is empty and the entry type is defined. Add a test to try opening an empty archive.
@adamhathcock adamhathcock merged commit f1facc5 into adamhathcock:master Sep 25, 2018
@adamhathcock
Copy link
Owner

Thanks!

@Quogu Quogu deleted the RecogniseEmptyTarArchives branch February 4, 2019 22:11
@GROpenSourceRO GROpenSourceRO restored the RecogniseEmptyTarArchives branch April 22, 2020 15:25
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.

2 participants