The camera took pictures of many days , Are stored in a folder .
as follows :
The current requirement is based on the modification time of the file , Reclassify the files to the corresponding date folder .
such as 1641975447.0557504.jpg Was modified on 2022 year 1 month 12 Japan Wednesday ,16:17:27
Will 1641975447.0557504.jpg To classify as “./2022-01-12/” Under the table of contents .
Here's the picture :
recatefile.py The script is as follows :
# -*- coding: UTF8 -*-
# jn10010537
# recatefile.py
# Reclassify according to the date when the file was written to the disk