mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 19:54:54 -06: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