Ticket #18 (closed defect: fixed)
:create_if_missing does not work (0.3.2)
| Reported by: | ferret@… | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | milestone3 |
| Component: | component1 | Version: | 2.0 |
| Keywords: | GjDIDiMMWKDZzCZ | Cc: |
Description
require 'rubygems' require 'ferret' include Ferret index = Index::Index.new( :path => '/tmp/ferret-test/', :auto_flush => true, :create_if_missing => true, :default_search_field => ['subject'] )
gives me the following exception:
/opt/local/lib/ruby/gems/1.8/gems/ferret-0.3.2/lib/ferret/store/fs_store.rb:41:in `initialize': There is no directory: /tmp/ferret-test/. Use create = true to create one (RuntimeError)
Attachments
Note: See
TracTickets for help on using
tickets.
