Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 996 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 996 Bytes

Description

A simple tool to change standard camera file namings.

Important notice: This tool works correctly only if your files have an underscore in the middle of their name.

Example:

DSC_NNNN.JPG to DSC_YYYYMMDD_HHMMSS.JPG

Installation

Using built-in Python venv

python3 -m venv .venv

On Windows:

.venv\Scripts\activate.bat

On Linux:

source .venv/bin/activate

And then add the required packages:

git add requirements.txt

Using Poetry

poetry install

Required libraries will be added to a local .venv, created automatically. The steps for entering the virtul environment are the same as for the non-Poetry way.

Usage

To use, either import rename_camera_files in your own code or activate the main.py file and follow the instructions:

python main.py

How it works

It takes a file, gets its metadata tag relating to date and time of creation and changes the file name, replacing the iterative number with date and time.