An archiver which is like a tar alternative.
Find a file
Stephen Seo bef9c37d72
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 5s
Minor fix
2024-10-08 10:39:21 +09:00
.forgejo/workflows Some work on arg parser 2024-07-01 15:13:06 +09:00
cosmopolitan Impl. basic functionality "MVP" 2024-07-16 16:16:58 +09:00
src Minor fix 2024-10-08 10:39:21 +09:00
.gitignore Impl. parser (TODO Fix invalid free crash) 2024-06-27 11:57:29 +09:00
CMakeLists.txt Split "rel-path-from-abs-paths" into function 2024-10-02 15:11:23 +09:00
file_format.md Update file_format for v1 2024-10-04 14:02:54 +09:00
file_format_1_example_0 Update file_format for v1 2024-10-04 14:02:54 +09:00
file_format_1_example_1 Update file_format for v1 2024-10-04 14:02:54 +09:00
invalid_file_format_0_example_0 Add filename validation for test/extracting 2024-10-04 21:24:10 +09:00
invalid_file_format_0_example_1 Add filename validation for test/extracting 2024-10-04 21:24:10 +09:00
invalid_file_format_1_example_0 Add filename validation for test/extracting 2024-10-04 21:24:10 +09:00
invalid_file_format_1_example_1 Add filename validation for test/extracting 2024-10-04 21:24:10 +09:00
invalid_file_format_1_example_2 Add filename validation for test/extracting 2024-10-04 21:24:10 +09:00
LICENSE Switch to ISC License 2024-08-30 11:36:11 +09:00
README.md Update README.md 2024-10-04 21:28:29 +09:00

Simple Archiver

This program is not yet almost finished! Basic functionality is implemented and only some advanced features are missing. You can track progress here.

This program exists because I could not get tar or ar to compile with Cosmopolitan. Thus, this archiver will be written with support for Cosmopolitan in mind. This means sticking to the C programming language and possibly using Cosmopolitan-specfic API calls.

Usage

Usage flags:
-c : create archive file
-x : extract archive file
-t : examine archive file
-f <filename> : filename to work on
  Use "-f -" to work on stdout when creating archive or stdin when reading archive
  NOTICE: "-f" is not affected by "-C"!
-C <dir> : Change current working directory before archiving/extracting
--compressor <full_compress_cmd> : requires --decompressor
--decompressor <full_decompress_cmd> : requires --compressor
  Specifying "--decompressor" when extracting overrides archive file's stored decompressor cmd
--overwrite-create : allows overwriting an archive file
--overwrite-extract : allows overwriting when extracting
--no-abs-symlink : do not store absolute paths for symlinks
--temp-files-dir <dir> : where to store temporary files created when compressing (defaults to current working directory)
--write-version <version> : Force write version file format (default 1)
--chunk-min-size <bytes> : v1 file format minimum chunk size (default 4194304 or 4MiB)
-- : specifies remaining arguments are files to archive/extract
If creating archive file, remaining args specify files to archive.
If extracting archive file, remaining args specify files to extract.

Note that --compressor and --decompressor cmds must accept data from stdin and return processed data to stdout.

LICENSE Information

Uses the ISC License.