Quote:
Originally Posted by kaufman
Installed and it seems to be working well. I like the new interface to the sd card.
|
Good.
Quote:
One issue. As a test, I selected the SD card even though my books were already in the destination directory. It went through the whole "moving your books" thing for awhile and in the end it had deleted all my books. When moving books, you might want to add a check to make sure the from and to directories are not the same folder.
|
That test is already there.
The test is to compare the paths to the folder. I suspect that the path you manually set up used a different mount point (or something), making it look different from the one that Android returns. For example, you might have used /mnt/sdcardX/... while Android used /mnt/storage/X/....
Unfortunately there isn't any reliable way to compare such paths to see if they are the same file. The standard code, getCanonicalPath(), can return two unequal values. Instead I will need to play games with the actual files themselves.
Thanks for pointing out the problem!