mirror of
https://github.com/bootandy/dust.git
synced 2025-12-12 15:49:58 -08:00
perf: Do not canonicalize non-absolute ignored path
This commit is contained in:
@@ -177,6 +177,9 @@ fn ignore_file(entry: &DirEntry, walk_data: &WalkData) -> bool {
|
|||||||
|
|
||||||
// Entry is inside an ignored absolute path
|
// Entry is inside an ignored absolute path
|
||||||
for ignored_path in walk_data.ignore_directories.iter() {
|
for ignored_path in walk_data.ignore_directories.iter() {
|
||||||
|
if !ignored_path.is_absolute() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
match std::fs::canonicalize(ignored_path) {
|
match std::fs::canonicalize(ignored_path) {
|
||||||
Ok(absolute_ignored_path) => {
|
Ok(absolute_ignored_path) => {
|
||||||
let absolute_entry_path =
|
let absolute_entry_path =
|
||||||
|
|||||||
Reference in New Issue
Block a user