# .../DorothyGilman/P06_On_the_China_Station.epub.
require 'book'
+require 'store'
class WalkDir
- def initialize(root)
+ def initialize(store, root)
@root = root
+ @store = store
@files = walk(@root)
end
for file in @files.sort
if Book.canHandle?(file)
book = Book.new(file)
+ @store.store_book(book)
result.push(book)
end
end
result.push(fullName)
end
end
+ #puts result
return result
end
end