View Single Post
Old 05-15-2014, 12:38 PM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kaufman View Post
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!
chaley is offline   Reply With Quote