Skip to content
X-OrBitPublic

About

Template file renamer written on Rust. Analogue to linux mmv

Resources

Stars

12 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

πŸͺ’ TFR - Template file renamer

A tool for fast renaming or moving files according to a given input and output templates. An analog to linux mmv

Project on the HSE Rust course

πŸ”§ Installation

You must have the project dependencies installed

  1. Cloning a repository
git clone https://github.com/X-OrBit/tfr
  1. Going to the tfr directory
cd tfr
  1. Building
cargo build -p tfr -r

The binary file will be located along the path ./target/release/tfr

πŸ“¦ Releases

Releases and builds of the program can be found at the link

πŸ‘” Dependencies

For this project you must have installed Rust compiler and cargo:

MacOS

Homebrew

sudo brew install rust

MacPorts

sudo port install rust

MacOS, Linux and other Unix-like OS

Run the following in terminal, then follow the on-screen instructions:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Windows

Download and run rustup-init.exe

πŸš€ Usage

Moving single file

tfr source/file/path destination/file/path

Moving all files from directory

tfr source/dir/path/* destination/file/path/#1

Moving only .txt files from directory

tfr source/dir/path/*.txt destination/file/path/#1.txt

Change file name formats

tfr source/dir/path/image_*_from_*.* destination/file/path/#2_#1_image.#3

⚠️ Possible problems

There may be problems on systems where the file system does not support /

β˜‘οΈ TODO list

  • Support for capture flags in directories (source/dir_*/path/*.png)
  • Support for including / in captures with special capture flag: ** (source/**/path/**.png)
  • Support for moving/renaming directories (source/directory/path/to/move)
  • Support for insertion flags in directories (destination/dir_#1/path/#2.png)

About

Template file renamer written on Rust. Analogue to linux mmv

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages