Valentin 4986a8460c Absolute Paths Support for Archives Creation (#291)
Added support for -P and --absolute-names flags to preserve absolute
paths when creating archives, matching GNU tar behavior.

* CLI: Added -P / --absolute-names options to uu_app.
* Operations: Configured tar::Builder to preserve absolute paths
  based on the new flag.
* Normalization: Updated normalize_path to skip stripping root
  and prefix components when absolute paths are allowed.
* Tests: Added integration tests for path preservation and trimming
  during archive creation and extraction.
2026-06-01 20:53:03 +01:00
2026-05-18 08:46:15 -07:00
2025-09-24 20:53:22 +02:00
2025-10-21 18:00:16 +02:00
2026-05-17 08:53:39 +01:00
2025-02-01 18:07:27 +01:00
2025-02-01 18:07:27 +01:00

Crates.io Discord License dependency status

CodeCov

tar

Rust reimplementation of the tar utility.

Installation

We provide a pre-built binary from main branch.

To build tar from source, install Rust on your system. You can install Rust via rustup.

Clone the repository and build the project using Cargo:

git clone https://github.com/uutils/tar.git
cd tar
cargo build --release
cargo run --release

Testing

The tar application has a focused testing philosophy that separates concerns between the application (CLI interface, error handling, user experience) and the underlying tar-rs library (archive format correctness, encoding, permissions).

See tests/README.md for comprehensive documentation.

# Run all tests
cargo test --all

# Run specific test
cargo test test_create_single_file

License

tar is licensed under the MIT License - see the LICENSE file for details

S
Description
No description provided
Readme MIT 1 MiB
Languages
Rust 72.4%
Python 19.7%
Shell 7.9%