We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d3f609 commit 747ddf6Copy full SHA for 747ddf6
build.rs
@@ -85,7 +85,11 @@ fn files_with_predicate<'p>(
85
Ok(dir
86
.read_dir()?
87
.flatten()
88
- .filter_map(|e| e.file_type().is_ok_and(|typ| typ.is_file()).then(|| e.path()))
+ .filter_map(|e| {
89
+ let path = e.path();
90
+ // Use path.metadata() instead of e.file_type() to follow symlinks
91
+ path.metadata().is_ok_and(|m| m.is_file()).then(|| path)
92
+ })
93
.filter(move |p| predicate(p)))
94
}
95
0 commit comments