Bulk File Renamer and Organizer Script
Build a script that scans a directory tree, renames files according to configurable regex-based patterns, and organizes them into subfolders by file type or date. Learners practice File::Find traversal, regex substitution, and safe filesystem operations.
- Estimate
- ~6.5h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
File::Find · Perl core modules
Project roadmap
- 01
Traverse the directory tree
~1.5hUse File::Find to recursively collect file paths from a target directory.
- 02
Define renaming rules
~1.5hWrite regex-based substitution rules for cleaning up filenames (spaces, case, dates).
- 03
Implement organization logic
~1.5hGroup files into subfolders based on extension or modification date.
- 04
Add a dry-run mode
~1hLet the user preview planned renames/moves before applying them.
- 05
Execute and log changes
~1hPerform the file operations and write a log of every rename/move for undo reference.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack