Skip to content

filename-ingest

A CLI tool that removes plaintext values from file names in a directory, stripping surrounding separators (-, _, ., whitespace) automatically.

Installation

pip install filename-ingest

Quick Start

Remove the word draft from all file names in a directory:

python -m filename_ingest /path/to/files draft

Preview changes without renaming:

python -m filename_ingest /path/to/files draft --dry-run

Example

DRAFT-report.docx        -> report.docx
invoice_DRAFT_2024.pdf   -> invoice_2024.pdf
notes_draft_final.txt    -> notes_final.txt