mirror of
https://github.com/restic/restic.git
synced 2026-11-01 04:55:42 +00:00
Add iexclude and iinclude options to restore command
This commit is contained in:
1 parent
db82e6b80c
commit
c13f79da02
2 files changed
+38
-13
No files matched your search
@@ -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