pathcify 0.0.1

CLI tool to recursively slugify file and directory names using dots, removing special characters and normalizing names.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::Parser;
use pathcify::cli::Cli;
use pathcify::walker::process_dir;

fn main() {
    let cli = Cli::parse();

    if !cli.path.exists() {
        eprintln!("Error: path does not exist.");
        std::process::exit(1);
    }

    process_dir(&cli.path, cli.lowercase);
}