-
-
Notifications
You must be signed in to change notification settings - Fork 391
Seek() in archive file #323
Comments
I don't think the underlying archive format implementations (tar, zip, etc) give us It does seem like that should be able to work when dealing with regular files on disk, but this might be a feature request more for the standard library (or whatever package implements the underlying archive format). Will close this, but feel free to continue discussion. I could very well be wrong. |
I tried to implement a caddy module after the merge of caddyserver/caddy#4909 but it panics because of this:
|
https://github.com/nlepage/go-tarfs works fine ! (since nlepage/go-tarfs#4) |
I just realized, that it reads the whole file in memory: https://github.com/nlepage/go-tarfs/blob/bec76bb13b0a3be9e1bf8bb03141a6d26ce91902/fs.go#L39-L44 ... |
Gah, I forgot about that.
Yikes, haha. That probably won't do for production use. Thanks for experimenting with it!! |
Hello,
When i walking in archive I have fs.File (without Seek()). How can I get ReadSeeker interface of it?
Thanks
The text was updated successfully, but these errors were encountered: