From f0e0400146d5c4009904a5a3156ed8b7530d6a1d Mon Sep 17 00:00:00 2001 From: Gregg Van Hove Date: Thu, 9 Jun 2016 09:50:43 -0700 Subject: [PATCH] Look in subdirectories when finding PDFs from DITA-OT [fix #118347339] --- lib/bookbinder/preprocessing/dita_pdf_preprocessor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bookbinder/preprocessing/dita_pdf_preprocessor.rb b/lib/bookbinder/preprocessing/dita_pdf_preprocessor.rb index ebbb76c4f..5e9bc2065 100644 --- a/lib/bookbinder/preprocessing/dita_pdf_preprocessor.rb +++ b/lib/bookbinder/preprocessing/dita_pdf_preprocessor.rb @@ -36,7 +36,7 @@ def preprocess(sections, output_locations, options: {}, output_streams: nil, **_ end def most_recent_pdf(dir_path) - pdfs_by_modified_date = Dir.glob(dir_path + '*.pdf').sort_by{ |f| File.mtime(f) } + pdfs_by_modified_date = Dir.glob(dir_path + '*/*.pdf').sort_by{ |f| File.mtime(f) } pdfs_by_modified_date.last end