Implement a easy to use Direcotry API that allows you to find and load all files of some type and perform bulk edits on them.
This idea comes from a small GTK2 joke that looks like this:
(("./gimp/" findAllFilesWithExt ".cpp").replaceAllOf("gtk2", "gtk3")) writeBackToFolder "./gimp/"
and this is the first goal of this API.
Lets break it up into peaces:
"./gmip/" findAllFilesWithExt ".cpp"
- Check if folder exists; Open folder
- Search for
.cppfiles as file suffix
- Load files into custom
- Loop through all files and string replace (Bulk string replace)
- Override every file in the folder