Skip to content

Commit

Permalink
Rescue Errno::ENOENT exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmaroli committed Sep 2, 2024
1 parent 774c9f9 commit 6d289fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/jekyll/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def read_directories(dir = "")
dot = Dir.chdir(base) { filter_entries(Dir.entries("."), base) }
dot.each do |entry|
file_path = @site.in_source_dir(base, entry)
next unless File.exist?(file_path)

if File.directory?(file_path)
dot_dirs << entry
elsif Utils.has_yaml_header?(file_path)
Expand Down

0 comments on commit 6d289fb

Please sign in to comment.