ferret 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ferret.rb +1 -1
- data/lib/ferret/store/fs_store.rb +6 -1
- data/lib/rferret.rb +1 -1
- metadata +1 -1
data/lib/ferret.rb
CHANGED
@@ -164,7 +164,12 @@ module Ferret::Store
|
|
164
164
|
rescue
|
165
165
|
# try again, this time forcing the delete
|
166
166
|
FileUtils.rm_rf(dir_path(to))
|
167
|
-
|
167
|
+
begin
|
168
|
+
FileUtils.mv(dir_path(from), dir_path(to))
|
169
|
+
rescue
|
170
|
+
FileUtils.cp(dir_path(from), dir_path(to))
|
171
|
+
FileUtils.rm_rf(dir_path(to))
|
172
|
+
end
|
168
173
|
end
|
169
174
|
end
|
170
175
|
end
|
data/lib/rferret.rb
CHANGED