Crates.io | remove_empty_subdirs |
lib.rs | remove_empty_subdirs |
version | 0.1.1 |
source | src |
created_at | 2018-09-02 16:09:05.060618 |
updated_at | 2018-09-14 04:49:49.249406 |
description | Recursively remove empty sub-directories |
homepage | https://github.com/zhangkaizhao/remove_empty_subdirs |
repository | https://github.com/zhangkaizhao/remove_empty_subdirs |
max_upload_size | |
id | 82639 |
size | 28,484 |
Recursively remove empty sub-directories.
Note:
Add the library as a dependency to your project by inserting
remove_empty_subdirs = "0.1.0"
into the [dependencies]
section of your Cargo.toml
file.
Then use it in the source code of your project. For example:
extern crate remove_empty_subdirs;
use std::path::Path;
use remove_empty_subdirs::remove_empty_subdirs;
fn main() {
let path = Path::new("test_dir");
remove_empty_subdirs(path).unwrap();
}
First, build the executable in examples/
directory:
cargo build --release --examples
Then copy the built executable target/release/examples/remove_empty_subdirs
to anywhere you like.
Run the executable:
/path/to/remove_empty_subdirs --help
to get the help for usage.
This project is licensed under either of
at your option.