mirage / ocaml-tar

Pure OCaml library to read and write tar files
ISC License
54 stars 34 forks source link

Base 256 encoded numbers #139

Open reynir opened 9 months ago

reynir commented 9 months ago

Some tar implementations use base-256 encoded numbers when they are out of range of the octal representation, for example for file sizes greater than 8GB. I think it may be worth supporting in the reader, but for writing I would not implement it and use PAX instead.

Some resources I found:

https://www.gnu.org/software/tar/manual/html_node/Extensions.html

https://github.com/golang/go/issues/12594

https://busybox.busybox.narkive.com/wxISE34V/let-tar-extract-files-8g