remove_empty_subdirs
Recursively remove empty sub-directories.
Note:
- Hidden directories which start with ".", e.g. ".git" are ignored.
- Permission denied directories and their sub-directories are ignored.
Usage
Library
Add the library as a dependency to your project by inserting
= "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 Path;
use remove_empty_subdirs;
Executable
First, build the executable in examples/
directory:
Then copy the built executable target/release/examples/remove_empty_subdirs
to anywhere you like.
Run the executable:
to get the help for usage.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.