OSDN Git Service

FileHandle.moveTo() Update
authorPsyfire <psy@psyfire.com>
Fri, 7 Jun 2013 13:52:15 +0000 (09:52 -0400)
committerPsyfire <psy@psyfire.com>
Fri, 7 Jun 2013 13:52:15 +0000 (09:52 -0400)
commitb480e87333eede1035e2b6e24f77d9c3f0404787
tree23205f9f61f5ef7273fb1ee3a5d761f5892891a2
parent2ba7ddfef5a6fd80790dafcec2e079467d6051c0
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.
gdx/src/com/badlogic/gdx/files/FileHandle.java