diff --git a/lib/iev/db.rb b/lib/iev/db.rb index 6ad882e..63b4254 100644 --- a/lib/iev/db.rb +++ b/lib/iev/db.rb @@ -55,7 +55,7 @@ def open_cache_biblio(dir, global: true) db = DbCache.new dir if global unless db.check_version? - FileUtils.rm_rf dir + "/." + FileUtils.rm_rf(Dir.glob(File.join(dir, '*')), secure: true) warn "Global cache version is obsolete and cleared." end db.set_version