I wrote a small python program as a personal utility to help me with some refactoring. It is similar to replacing unix, except that it supports regular expressions and works with all files in a directory and (optionally) all subdirectories.
The problem is that I am not replacing the place. I open the files, transferring the contents to memory, and then overwrite the file like this:
file = open('path/to/file','r')
in_string = file.read()
file.close()
file = open('path/to/file','w')
file.write(out_string)
file.close()
Besides the obvious performance and memory issues that are legal, but not so much a problem for my use, but also another disadvantage of this method. SVN is worried. I can make some copies and pastes of workarounds after the fact to fix the checksum error that svn throws the commit but makes this utility pointless.
? , , . ?