file-renamer

Crates.iofile-renamer
lib.rsfile-renamer
version3.0.0
sourcesrc
created_at2022-12-16 07:27:08.47779
updated_at2022-12-17 05:37:43.92653
descriptionA file renamer written in Rust. Renames a batch of files according to user-specified rules, such as capitalization, lowercasing, and string replacement
homepage
repository
max_upload_size
id738549
size7,788
Nesbeer (ItzNesbroDev)

documentation

README

file-renamer

file-renamer is a command-line tool for renaming files in a directory according to a specified rule.

Installation

To install file-renamer, you will need to have Rust installed on your machine. You can install Rust using rustup.

Once Rust is installed, use cargo to install

$ cargo install file-renamer

Build from source

clone this repository and build file-renamer using Cargo:

$ git clone https://github.com/ItzNesbroDev/file-renamer.git
$ cd file-renamer
$ cargo build --release

This will create a release binary in the target/release directory, which you can then copy to a location in your PATH for easy access.

Usage

To use file-renamer, simply specify the directory containing the files you want to rename and the rule you want to apply:

file-renamer path/to/directory uppercase

The first option specifies the path to the directory containing the files you want to rename, and the second option specifies the transformation to apply to the file names. Possible values for second are uppercase and lowercase.

Examples

To rename all the files in the documents directory to uppercase:

file-renamer documents uppercase

To rename all the files in the downloads directory to lowercase:

file-renamer downloads lowercase

To rename all the files in the pictures directory with the first letter in the file name in uppercase:

file-renamer pictures first-letter-uppercase

To rename all the files in the music directory with the first letter in the file name in lowercase:

file-renamer music first-letter-lowercase

License

file-renamer is licensed under the MIT License. See LICENSE for more details

Commit count: 0

cargo fmt