if we have not automatic assets, don't try deleting them

This commit is contained in:
Sam Saffron 2013-09-20 14:39:14 -07:00
parent 13527a1df7
commit 964809f73b

View File

@ -47,6 +47,8 @@ class Plugin::Instance
end
def delete_extra_automatic_assets(good_paths)
return unless Dir.exists? auto_generated_path
filenames = good_paths.map{|f| File.basename(f)}
# nuke old files
Dir.foreach(auto_generated_path) do |p|