facebook/codemod — pull request #6 by DamianZaremba (2012-07-13 15:32:52+00:00)
Title: Check the file is writeable after the directory walk

This should fix #2.

Not 100% sure if this is a good idea as it may cause un-expected behaviour, due to it quietly skipping files.

It may be better storing doing a try/catch around the open in the _save method, storing the path in a global list then at the end of the script dumping out all the failed files.

It could be outputted after each diff, but due to the way the terminal is used it would easily obscure the stdout, as the next terminal effectively clears previous data.