Jun-28-2023, 01:47 PM
Hi everyone,
I have a folder which contains all files exported from Dropbox. All these files have been named using the date when they are created. The names have the format as: YYYY-MM-DD HH.MM.SS. For example, 2023-05-31 15.29.51.
I just want to rename they as: YYYY_MM_DD. If there are multiple files with the same date, then just make it as: YYYY_MM_DD (1), YYYY_MM_DD (2), ...
Do you know how I can use a smart Python code to automate this task?
I have a folder which contains all files exported from Dropbox. All these files have been named using the date when they are created. The names have the format as: YYYY-MM-DD HH.MM.SS. For example, 2023-05-31 15.29.51.
I just want to rename they as: YYYY_MM_DD. If there are multiple files with the same date, then just make it as: YYYY_MM_DD (1), YYYY_MM_DD (2), ...
Do you know how I can use a smart Python code to automate this task?