Skip to content

Commit

Permalink
Merge pull request #457 from Bo98/ignore-absolute
Browse files Browse the repository at this point in the history
Support absolute paths in ignore_directories
  • Loading branch information
casperisfine authored Oct 30, 2023
2 parents 5404c13 + 96aeb9c commit 02e1a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bootsnap/load_path_cache/path_scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def walk(absolute_dir_path, relative_dir_path, &block)

absolute_path = "#{absolute_dir_path}/#{name}"
if File.directory?(absolute_path)
next if ignored_directories.include?(name)
next if ignored_directories.include?(name) || ignored_directories.include?(absolute_path)

if yield relative_path, absolute_path, true
walk(absolute_path, relative_path, &block)
Expand Down

0 comments on commit 02e1a6f

Please sign in to comment.