mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-14 23:33:18 +00:00
If a symlink is a directory, match it against the patterns as a directory
This commit is contained in:
@@ -513,6 +513,9 @@ func ListEntries(top string, path string, fileList *[]*Entry, patterns []string,
|
|||||||
// path from f.Name(); note that a "/" is append assuming a symbolic link is always a directory
|
// path from f.Name(); note that a "/" is append assuming a symbolic link is always a directory
|
||||||
newEntry.Path = filepath.Join(normalizedPath, f.Name()) + "/"
|
newEntry.Path = filepath.Join(normalizedPath, f.Name()) + "/"
|
||||||
}
|
}
|
||||||
|
if len(patterns) > 0 && !MatchPath(newEntry.Path, patterns) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
entry = newEntry
|
entry = newEntry
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user