dangphuc2470 / Creation_Date_Changer

Recover creation date from filename and vice versa, add GPS location to image.
MIT License
5 stars 0 forks source link

Feature: Recursive #1

Closed kfoxton closed 1 month ago

kfoxton commented 1 month ago

Hey, thanks for making this tool, its helping me out lots!

I was wondering if it would be possible to have it take a directory and it scans though all of the subdirectories for files to apply to, instead of just individual files?

dangphuc2470 commented 1 month ago

Thanks for your interest in my tool!

Based on your request, I've added folder scanning with subfolders. However, the current limitation is that the tool can only replace one naming format at a time. So I created a combobox to display the naming format groups and created an assign button to assign to the text box below to improve user experience while replacing manually.

Try it and let me know if any errors occur. Just in case, I recommend starting with a small photo folder or making a backup first because I'm not sure if I tested it thoroughly enough.

screenshot2

kfoxton commented 1 month ago

Hey, Thanks for making an update.

I gave it a try, and it looks like the grouping is not working correctly. All of my file names are in the same format, but it seems to be grouping them oddly. My files are in the scheme of yyyymmdd_hhmmss_rrrrrrrr.extention but as you can see in the screenshot, when scanning a directory with 12 subdirectories, it seems to find hundreds of file name formats.

image

dangphuc2470 commented 1 month ago

Ah, I see the problem is because I didn't take into account that the suffix characters (The HEX number at the end in your example, not the extension) include both letters and numbers. I can't think of any way to handle that suffix automatically, so I've added an option to ignore the characters at the end. I don't know if it affects other naming formats. Please try it again and let me know image

kfoxton commented 1 month ago

Hey, I tried the new version and setting the ignore value and re-selecting the folder again, doesn't seem to change the options found. Would it be better to just disregard anything after the last . so that the file extention is just fully ignored, if that is the cause of the issue?

image image

dangphuc2470 commented 1 month ago

I have ignored the extensions so you don't need to care about it, and you need to enter the number 8 which is the number of HEX charaters at the end of the name (which make my tool indentify it as different group), like the example above I named the same as your files.

kfoxton commented 1 month ago

Sorry for the delay in getting back to you. I verified it works as expected. Thanks again for making this tool!