Archived
1 parent
513d3bc374
commit
2f9840ddae
6 files changed
+19
-11
No files matched your search
+1
-1
@@ -250,7 +250,7 @@ func (w *walker) walkAndHashFiles(ctx context.Context, toHashChan chan<- protoco
|
||||
return skip
|
||||
}
|
||||
// If the parent wasn't ignored already, set this path as the "highest" ignored parent
|
||||
if info.IsDir() && (ignoredParent == "" || !strings.HasPrefix(path, ignoredParent+string(fs.PathSeparator))) {
|
||||
if info.IsDir() && (ignoredParent == "" || !fs.IsParent(path, ignoredParent)) {
|
||||
ignoredParent = path
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user