mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +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
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