FolderFlatter is a command line tool that allows you to copy all the files with a certain extension or extensions recursively from a folder hierarchy into an output directory. This tool was born when I had to cope with an intricate folder structure trying to find all the images inside it to copy them to another folder to manipulate them.

Download a release or clone the code and collaborate on this GitHub repository.