We need a user interface where the user can enter the root folder that needs to be searched for photos. In time we can add features to it. But for now it needs to allow you to choose a folder, and have a button to launch the process.
Month: September 2023
Photo Consolidation Project – csv Prototype
Now it comes time to put what we have learnt into a single Python script. We will need to paste the root file path into the code, and call out the name and location of the result csv path. In the final version these two pieces of data will change. The root folder will be The full story here…
Photo Consolidation Project – Write to File
In order to get working software sooner, I’ve decided to write the data to a csv file. This will allow us to get cracking on the photos without having to wait for the completed project. And for some people, a csv file will be enough. The database will just be extra complexity. But there is The full story here…
Photo Consolidation Project – Traverse Files
We need to walk through a file tree, going down into each subfolder. For now I am just logging the file path to the terminal. The source folder is hard coded, and it is in Windows format. But it should automatically work for other operating systems.
Photo Consolidation Project – Get a Hash
I decided to get the md5 hash of a file. This is pretty much unique. It ignores dates or file sizes which may vary depending on different systems. But it will identify a file as different if it has been resized. There may be a reason to keep different sizes of files – if you The full story here…