filetime_tools is a collection of programs for working with files and timestamps. It implements the following functionality:
- Scan a file system and find all of the files
- Maintain a database of scans with SQLite3
- Rescan the file system and report changes
- Change timestamps embedded in filenames from any recognized timestamp to ISO 8061 format (both batch and with a GUI)
- Change the EXIF in JPEGs to be consistent with the timestamp in the file's name.
- Change the name of a JPEG to be consistent with its EXIF timestamp
By default, fchange.py
will look to the default.ini
file for MySQL authentication credentials. Please see the file default.ini.DIST
for how to fill out this file with your MySQL credentials.
You can specify a different configuration file with the --config [path to configuration file]
flag.
fchange.py - Scan a directory and report file system changes. fix_jpegs.py - Change filename or timestamps to take into account the time stored in the EXIF fix_timestamps.py - Seek out and rename MDY timestamps in filenames to be YYYY-MM-DD. Optional GUI with --gui
python3 fix_timestamps.py [--dry-run] [--gui] root1 [root2 ...]
python3 fchange.py --db mydb.db --create
python3 fchange.py --db mydb.db --addroot DIR1
python3 fchange.py --db mydb.db --addroot DIR2
python3 fchange.py --db mydb.db --scan
python3 fchange.py --db mydb.db --reportdups
python3 fchange.py --sqlite3db mydb.db --addroot DIR1 python3 fchange.py --sqlite3db mydb.db --dump
python3 fchange.py --sqlite3db mydb.db --addroot DIR1 python3 fchange.py --sqlite3db mydb.db --addroot DIR2
python3 fchange.py --db images.db --create ~/Photos/
You can do this just with Unix command line tools:
find . -type d -empty -print
You can do this just with Unix command line tools:
find . -type d -empty -delete