eleybourn/Book-Catalogue — Issue #300: Importing from a CSV file...copy images?
Author: Grunthos
Created: 2012-03-08 12:13:15+00:00
State: open

As of V4 we will have the ability to import a CSV file from any external bookCatalogue directory, not necessarily just the one in the directory returned by getExternalStorage().

This is good. It means people can upgrade to new phones.

But; those directories may contain images. And they may not be the 'right' bookCatalogue directory.

In the case where the CSV file is not in the 'right' place, my suspicion is that we should do the following:

- if the CSV file has a UUID field, copy any image files we find when we copy the details, unless there is a newer file already present

- if the CSV file does not contain a UUID but it DOES contain an ID, AND there is an id-based file, then when the book is added/updated, we should copy/rename the image if there is not a newer version.

Does this sound right?