ferret 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- 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