Skip to content

Commit 96aeb9c

Browse files
committed
Support absolute paths in ignore_directories
1 parent c4fb919 commit 96aeb9c

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)