Recipe Difficulty: Medium
Python Version: 2.7
Operating System: Linux
Now that we can iterate through a filesystem, let's look at how we can create file objects as we have been accustomed to doing. In this recipe, we create a simple triage script that extracts files matching specified file extensions and copies them to an output directory while preserving their original file path.