mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibTar: Implement TarOutputStream
This output stream creates gnu format tar archives and currently only supports files and directories.
This commit is contained in:
parent
6c1322bdc7
commit
7eab20bad0
Notes:
sideshowbarker
2024-07-18 21:24:07 +09:00
Author: https://github.com/IdanHo
Commit: 7eab20bad0
Pull-request: https://github.com/SerenityOS/serenity/pull/5750
Issue: https://github.com/SerenityOS/serenity/issues/3989
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/bcoles
4 changed files with 116 additions and 16 deletions
|
@ -78,7 +78,7 @@ int main(int argc, char** argv)
|
|||
|
||||
InputStream& file_input_stream = file_stream;
|
||||
InputStream& gzip_input_stream = gzip_stream;
|
||||
Tar::TarStream tar_stream((gzip) ? gzip_input_stream : file_input_stream);
|
||||
Tar::TarInputStream tar_stream((gzip) ? gzip_input_stream : file_input_stream);
|
||||
if (!tar_stream.valid()) {
|
||||
warnln("the provided file is not a well-formatted ustar file");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue