A collection of Python utilities for file and directory management.
Recursively scans a directory and removes duplicate files based on size and MD5 hash comparison.
Usage: python remove-duplicates.py DIRECTORY
Batch renames files and directories using regular expressions. Includes preset patterns for common transformations (spaces to dots, comma removal, etc.).
Usage: python rerename.py [OPTIONS] <from_regex> <to_regex> DIRECTORY
Options:
-dUse default patterns-lConvert to lowercase-pPreview mode (no changes)-rRecurse subdirectories
Resets the DPI metadata in JPEG files to standard values (version: 0x102, units: 0, density: 100x100).
Usage: python resetjpegdpi.py DIRECTORY
Organizes directories by analyzing token-based naming patterns. Extracts tokens from directory names (separated by '+' by default), sorts them by frequency, and renames directories using the most common tokens first.
Usage: python pmt.py <target_directory> [options]
- Python 2.7+ (some scripts may need updating for Python 3)
- Standard library modules only
Copyright (c) David Thomas, 2007-2016. dave@davespace.co.uk