mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
File does not have a stream with WriteToDirectory with .7zip #685
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mathdx1111 on GitHub (Jul 8, 2025).
Hi, at my job we use this method for an automated job that is trigger when .7zip files are put inside a specific folder:
The problem is that I get a lot of the time this error: "File does not have a stream".
It does start the decompressing job but there is only one file that is in the new folder and nothing more. After we get the error that I mentionned.
I've read this: https://stackoverflow.com/questions/79455464/issue-partially-extracting-a-7-zip-archive-using-sharpcompress and I think this is a real issue.
@adamhathcock commented on GitHub (Jul 9, 2025):
7Zip creates bundles of streams and entries are in that stream. This is different from all other formats other than RAR SOLID archives.
Essentially the linked SO solution is correct as it extracts everything from the 7ZIp archive as a single stream/SOLID.
@mathdx1111 commented on GitHub (Jul 9, 2025):
So for the moment, how can I change my code in order that SharpCompress can do the job?