-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
uncompress tar stream (file or HTTP) to any destination #52
Comments
hey, thanks for your feedback. Indeed there was no stream method for tarExpander, I've fixed that on branch 1.1.4 and will produce a new release soon. Thanks for pointing out the lack of stream support for tar 👍 |
there's a new release implementing tarStreamExpander, it'll propagate soon in Arduino registry and is already available in platformio registry. bool tarStreamExpander( Stream *stream, size_t streamSize, fs::FS &destFS, const char* destFolder ); I'm closing this issue, feel free to reopen and/or add followup. |
just wow, thanks mate! |
I updated an example with the new method and can't seem to have it write to the file system. https://github.com/mc-hamster/ESP32-targz/tree/master/examples/ESP32/Unpack_tar_gz_stream Could I kindly ask that you look this over? It's probably something glaringly obvious. I'll send a PR for this example after some cleanup. |
All I can think of is it doesn't like If the web server you're downloading the file from sends the String contentLengthStr = http.header("Content-Length");
contentLengthStr.trim();
int64_t streamSize = -1;
if( contentLengthStr != "" ) {
streamSize = atoi( contentLengthStr.c_str() );
}
if (!TARUnpacker->tarStreamExpander(streamptr, streamSize, tarGzFS, "/"))
// ...
|
@tobozo Rock on! I'll submit a PR for the example to support this shortly. |
Hi!
I see methods to uncompress .tar.gz and .gz streams but no existing methods to uncompress just tar stream and save it to the file system. Is there a way to do this with the library now?
Thanks!
The text was updated successfully, but these errors were encountered: