Convert Files Into A New Format While Copying Them Into A Duplicate Directory Structure In Rust

This is the code I'm using when I need to make new versions of files in a different format. It does the following: