libgdx/libgdx — pull request #464 by Psyfire (2013-06-07 13:53:19+00:00)
Title: FileHandle.moveTo() Update

delete() only deletes files and empty directories. As such, moveTo() would leave the old directory after a moveTo() opperation. By adding deleteDirectory(), this ensures the old copy is removed. Not sure if the test "if (exists () && isDirectory())" is needed.