Currently File's renameTo takes in a File object. I think it would be groovier to allow a String to be passed in representing the rename - having to create a File to rename to seems a little strange.
public boolean renameTo(String path)
return this.renameTo(new File(path))
Calling code now becomes,