Method: Command::Diff#clean_all_diff
- Defined in:
- lib/command/diff.rb
#clean_all_diff ⇒ Object
292 293 294 295 296 297 298 299 300 |
# File 'lib/command/diff.rb', line 292 def clean_all_diff Database.instance.each do |id, data| next if Narou.novel_frozen?(id) cache_root_dir = Downloader.get_cache_root_dir(id) next unless File.exist?(cache_root_dir) FileUtils.remove_entry_secure(cache_root_dir) puts "#{data["title"]} の差分を削除しました" end end |