}
to_del = Dir.entries(dest_dir).find_all { |e| !File.directory?(File.join(dest_dir, e)) && !rightful_images.include?(e) } - themestuff - themestuff_root
if to_del.size > 0
- File.delete(to_del.collect { |e| File.join(dest_dir, e) })
+ File.delete(*to_del.collect { |e| File.join(dest_dir, e) })
end
end
to_del = Dir.entries(dest_dir).find_all { |e| !File.directory?(File.join(dest_dir, e)) && !all_elements.include?(e) && e !~ /^thumbnails-\w+\.jpg/ } - themestuff - themestuff_root
if to_del.size > 0
msg 3, _("\tcleaning up: #{to_del.join(', ')}")
- File.delete(to_del.collect { |e| File.join(dest_dir, e) })
+ File.delete(*to_del.collect { |e| File.join(dest_dir, e) })
end
#- copy any resource file that goes with the theme (css, images..)