Skip to content

Commit

Permalink
Delete everything inside cache dir except the dir
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP authored and ronaldtse committed Mar 31, 2019
1 parent d1fdb6c commit 8a3602b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iev/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a3602b

Please sign in to comment.