print "[^^^dump complete exceptprint "[!!!failed ###new code starts here filename,extension os path splitext(full_filenameif extension in file_typesinject_code(full_filename,extension,contents###end of new code --snip-this is pretty straightforward addition to our primary loop we do quick split of the file extension and then check it against our dictionary of known file types if the file extension is detected in our dictionarywe call our inject_code function let' take it for spin