Crates.io | flatten-directory |
lib.rs | flatten-directory |
version | 1.0.0 |
source | src |
created_at | 2024-10-14 10:01:41.061802 |
updated_at | 2024-10-14 10:01:41.061802 |
description | move all files from sub-directories to target directory, then remove all directories recursively |
homepage | https://github.com/hoshiyuki-tamako/flatten-directory-rs |
repository | https://github.com/hoshiyuki-tamako/flatten-directory-rs |
max_upload_size | |
id | 1408147 |
size | 18,000 |
move all files from sub-folders to target directory
then remove all directories recursively
cargo install flatten-directory
flatten-directory .
flatten-directory "/mnt/d/download"
use flatten_directory::FlattenDirectory;
fn main() {
FlattenDirectory::new("/tmp/test".into()).execute().unwrap();
}