I am looking for an operation to move and overwrite a File. I know that there is a new Method in Java7, but I was hoping to get around Java7. Also I know about the Methods in FileUtils and Guava, but the FileUtils won’t overwrite and the Guava one does not document it.
Also I am aware, I could write my own Method, well I started, but saw some Problems here and there, so I was hoping for something already done.
Do you have any suggestions?
I am finished with writing my own Method, for everybody interested in a possible solution, I used the ApacheCommons FileUtils, also this is probably not perfect, but works well enough for me: