mirror of
https://github.com/restic/restic.git
synced 2026-09-01 02:07:14 +00:00
Add iexclude and iinclude options to restore command
This commit is contained in:
committed by
Alexander Neumann
parent
db82e6b80c
commit
c13f79da02
@@ -187,3 +187,12 @@ func List(patterns []string, str string) (matched bool, childMayMatch bool, err
|
||||
|
||||
return matched, childMayMatch, nil
|
||||
}
|
||||
|
||||
// InsensitiveList is the same as List but case insensitive.
|
||||
func InsensitiveList(patterns []string, str string) (matched bool, childMayMatch bool, err error) {
|
||||
str = strings.ToLower(str)
|
||||
for index, path := range patterns {
|
||||
patterns[index] = strings.ToLower(path)
|
||||
}
|
||||
return List(patterns, str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user