Skip to content

Commit 02e1a6f

Browse files
authored
Merge pull request #457 from Bo98/ignore-absolute
Support absolute paths in ignore_directories
2 parents 5404c13 + 96aeb9c commit 02e1a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bootsnap/load_path_cache/path_scanner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def walk(absolute_dir_path, relative_dir_path, &block)
5454

5555
absolute_path = "#{absolute_dir_path}/#{name}"
5656
if File.directory?(absolute_path)
57-
next if ignored_directories.include?(name)
57+
next if ignored_directories.include?(name) || ignored_directories.include?(absolute_path)
5858

5959
if yield relative_path, absolute_path, true
6060
walk(absolute_path, relative_path, &block)

0 commit comments

Comments
 (0)