https://github.com/guangie88/unwalk
Recursively find .gz files to perform un-gzip process.
https://github.com/guangie88/unwalk
gzip gzip-decompression gzipped-files rust
Last synced: 10 months ago
JSON representation
Recursively find .gz files to perform un-gzip process.
- Host: GitHub
- URL: https://github.com/guangie88/unwalk
- Owner: guangie88
- License: mit
- Created: 2017-12-21T09:16:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-31T01:15:13.000Z (over 7 years ago)
- Last Synced: 2025-08-06T04:14:45.682Z (10 months ago)
- Topics: gzip, gzip-decompression, gzipped-files, rust
- Language: Rust
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `unwalk`
[](https://travis-ci.org/guangie88/unwalk)
[](https://codecov.io/gh/guangie88/unwalk)
[](https://opensource.org/licenses/MIT)
Simple program to walk directory recursively and find `.gz` files to perform
un-gzip process, which might be useful when copying files over from S3 / HDFS
with compression turned on.
This program may be possible to perform other modular actions in the future.
## How to install
Use [https://www.rustup.rs/](`rustup`) and get the commands `cargo` and
`rustc`.
Run `cargo install unwalk` for the installation.
## How to run
Assuming there are `.gz` files located within `data/`:
```bash
unwalk data/
```
The above command will walk all sub-directories recursively from `data/`,
un-gzipping all found `.gz` files, but not deleting any of the original `.gz`
files after successful un-gzipping.
To delete the files, add `-d` as such:
```bash
unwalk -d data/
```
For more information on the available CLI arguments, run:
```bash
unwalk -h
```
## How to build
Run `cargo build --all --release`. This builds all the associated libraries
and the executable. The executable will be built in `target/release/unwalk`.