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

LeaveStreamOpen doesn't work with TarWriter #270

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

LeaveStreamOpen doesn't work with TarWriter #270

dudes-come opened this issue Jul 8, 2017 · 0 comments
Assignees
Labels
bug
Milestone

Comments

@dudes-come
Copy link

@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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.