result = []
for file in @files.sort
if Book.canHandle?(file)
- book = Book.new(file)
- @store.store_book(book)
- result.push(book)
+ book = Book.new(@store)
+ book.loadFromFile(file)
+ id = @store.store_book(book)
+ result.push(id)
end
end
return result