Now that we have a class that allows us to gather information about photos, we can apply this information to perform useful tasks. In this case, we will use the file information to automatically organize a folder full of photos into a subset of folders based on the dates
the photos were taken on. The following screenshot shows the output of the script:
![](https://static.packt-cdn.com/products/9781788629874/graphics/assets/791ad614-7a78-4a55-8e19-2e94924fda3e.png)
Script output to organize photos in folder