The resulting folder structure
Media/
├── 2021/
│ └── 06/
├── 2022/
│ ├── 01/
│ └── 12/
└── 2023/
├── 07/
└── 08/Foldnize reuses existing year and month folders. Missing folders are created only when required.
Build the archive safely
- Select the highest-level folder you want Foldnize to scan.
- Choose whether to rename files, or leave the renaming mode unchanged for your workflow.
- Enable Sort into Year/Month folders.
- Leave recursive scanning enabled if media is spread across nested folders.
- Run a Dry run and inspect both the destination folder and filename.
- Apply the operation after confirming the preview.
Year/Month sorting from the CLI
npx foldnize --root=./media --mode=prefix --year-month --dry-runThis keeps each original filename, adds the date prefix, and previews a move into the matching year and month. Remove --dry-run to apply.
Organize mixed photos and videos together
The same archive can contain JPG, PNG, MOV, MP4, and MP3 files. Images use EXIF-style original dates; supported videos can use QuickTime metadata or FFprobe output. A single trip’s photos and videos therefore land in the same chronological month.
What happens to existing folders?
- Files already in the correct folder can remain there.
- Already formatted filenames are not repeatedly renamed.
- Empty folders left after moves are preserved.
- Filename collisions receive numbered suffixes.
- Files without readable dates are skipped.