Organize your photo library according its taken date.
go build
./tidy-photo [-s] [-o] [-t] [-p]
- s: The source path. Its default value is
./
. - o: The output path. Its default value also is
./
. - t: Test mode. If true only show the expected output. Its default is
false
. - p: The output directory structure pattern. It follows the Golang's time/Time.Format guide.
The default p
value is YYYY/YYYY-MM-DD
so the generated output will be this following structure:
YYYY
└── YYYY-MM-DD
└── Filename.ext
Example:
2020
├── 2020-10-28
│ ├── DSC00001.ARW
│ └── DSC00002.ARW
└── 2020-10-29
└── IMG_0001.CR3