lib/review/makerhelper.rb in review-5.6.0 vs lib/review/makerhelper.rb in review-5.7.0

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (c) 2012-2020 Yuto HAYAMIZU, Kenshi Muto +# Copyright (c) 2012-2023 Yuto HAYAMIZU, Kenshi Muto # # This program is free software. # You can distribute or modify this program under the terms of # the GNU LGPL, Lesser General Public License version 2.1. # For details of the GNU LGPL, see the file "COPYING". @@ -46,10 +46,10 @@ next if /^\./.match?(fname) if FileTest.directory?("#{from_dir}/#{fname}") image_files += copy_images_to_dir("#{from_dir}/#{fname}", "#{to_dir}/#{fname}", options) else - FileUtils.mkdir_p(to_dir) unless File.exist?(to_dir) + FileUtils.mkdir_p(to_dir) is_converted = false (options[:convert] || {}).each do |orig_type, conv_type| next unless /\.#{orig_type}$/.match?(fname)