diff --git a/lib/request_log_analyzer/source/log_parser.rb b/lib/request_log_analyzer/source/log_parser.rb index 340e6d0b..7a20f172 100644 --- a/lib/request_log_analyzer/source/log_parser.rb +++ b/lib/request_log_analyzer/source/log_parser.rb @@ -121,7 +121,9 @@ def parse_file(file, options = {}, &block) @current_source = File.expand_path(file) @source_changes_handler.call(:started, @current_source) if @source_changes_handler - if decompress_file?(file).empty? + if File.directory?(@current_source) + parse_files(Dir["#{ @current_source }/*"], options, &block) + elsif decompress_file?(file).empty? @progress_handler = @dormant_progress_handler @progress_handler.call(:started, file) if @progress_handler