unwalk

Crates.iounwalk
lib.rsunwalk
version0.2.0-beta1
sourcesrc
created_at2018-04-06 16:00:00.902759
updated_at2018-04-06 16:11:53.570943
descriptionWalk directory recursively to un-gzip files
homepage
repositoryhttps://github.com/guangie88/unwalk
max_upload_size
id59285
size12,558
Weiguang (guangie88)

documentation

https://docs.rs/unwalk

README

unwalk

Build Status codecov License: 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/ 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/:

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:

unwalk -d data/

For more information on the available CLI arguments, run:

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.

Commit count: 12

cargo fmt