The problem is that I need the file to move before the rest of my logic will work so when the method returns false I stop execution.
However, when I check on the fil
Isn't it possible that you file has a Inputstream open somewhere but has not been closed and so the rename is not working. Try closing all open streams relevant to the file object before closing.