# File app/utils/many_file_app.rb, line 79 def process_many_file @path_list.each { |path| if FileTest.directory?(path) # フォルダが指定された時は、サブフォルダを再帰的にたどって、 # 全ファイルを処理します。 Dir.glob(path + "/**/" + @fname_pattern).each { |f| process_one_file(f) } elsif FileTest.file?(path) process_one_file(path) else raise "パス[#{path}]はファイルまたはフォルダではありません。" end } end