Accept flexible date/time separators in filenames #4

Merged
hannah-vernon merged 3 commits from feature/flexible-timestamp-separator into dev 2026-07-08 17:19:57 -05:00

What does this PR do?

Allows a variety of separators between the date and time portions of a filename, fixing the assumption that the separator is always a dash.

The recognized pattern is now yyyyMMdd[sep]HHmmss, where [sep] may be:

  • a dash (20260711-123456)
  • an underscore (20260711_123456)
  • a dot (20260711.123456)
  • a space (20260711 123456)
  • omitted entirely (20260711123456)

Changes:

  • Updated the timestamp regex to [-_. ]? for the separator.
  • Updated the comment-based help, the skip-reason warning text, and the README.
  • Updated AGENT-README.md (script description and Changes log).

How was this tested?

  • Script parses cleanly (0 errors)
  • Manually verified all five separator forms (dash, underscore, dot, space, none) bucket into the correct Year\yyyy-MM-dd folder, and a non-matching name is still skipped

Checklist

  • Changes are focused - one logical change
  • Documentation updated (README and AGENT-README)
  • No new third-party dependencies
  • No commented-out code or debug leftovers
## What does this PR do? Allows a variety of separators between the date and time portions of a filename, fixing the assumption that the separator is always a dash. The recognized pattern is now `yyyyMMdd[sep]HHmmss`, where `[sep]` may be: - a dash (`20260711-123456`) - an underscore (`20260711_123456`) - a dot (`20260711.123456`) - a space (`20260711 123456`) - omitted entirely (`20260711123456`) Changes: - Updated the timestamp regex to `[-_. ]?` for the separator. - Updated the comment-based help, the skip-reason warning text, and the README. - Updated `AGENT-README.md` (script description and Changes log). ## How was this tested? - [x] Script parses cleanly (0 errors) - [x] Manually verified all five separator forms (dash, underscore, dot, space, none) bucket into the correct `Year\yyyy-MM-dd` folder, and a non-matching name is still skipped ## Checklist - [x] Changes are focused - one logical change - [x] Documentation updated (README and AGENT-README) - [x] No new third-party dependencies - [x] No commented-out code or debug leftovers
The date/time separator in a filename may now be a dash, underscore, dot, or
space, or be omitted entirely (yyyyMMdd[sep]HHmmss). Previously only a dash was
recognized. Updated the regex, comment-based help, warning text, and README.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hannah-vernon/camera-roll-tools!4
No description provided.