1 stable release
1.0.0 | Oct 14, 2024 |
---|
#806 in Filesystem
180 downloads per month
7KB
80 lines
Flatten directory
-
move all files from sub-folders to target directory
-
then remove all directories recursively
Install
cargo install flatten-directory
Usage
Command Line
flatten-directory .
flatten-directory "/mnt/d/download"
Use as library
Basic
use flatten_directory::FlattenDirectory;
fn main() {
FlattenDirectory::new("/tmp/test".into()).execute().unwrap();
}
Dependencies
~1.3–8MB
~71K SLoC