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

LeaveStreamOpen doesn't work with TarWriter #270

Closed
dudes-come opened this Issue Jul 8, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@dudes-come

dudes-come commented Jul 8, 2017

Example:

var tmpStream = new MemoryStream();
using (var writer = WriterFactory.Open(tmpStream, ArchiveType.Tar, new WriterOptions(CompressionType.None) { LeaveStreamOpen = true }))
{
}
// tmpStream disposed

Look this file:
https://github.com/adamhathcock/sharpcompress/blob/master/src/SharpCompress/Writers/AbstractWriter.cs
this.closeStream didn't set from the ctor (ArchiveType type, WriterOptions options).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment