mirror of
https://github.com/restic/restic.git
synced 2025-12-13 12:02:59 +00:00
Fix nil check in rejectBySize
This commit is contained in:
@@ -301,6 +301,10 @@ func rejectBySize(maxSizeStr string) (RejectFunc, error) {
|
||||
}
|
||||
|
||||
return func(item string, fi os.FileInfo) bool {
|
||||
if fi == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
// directory will be ignored
|
||||
if fi.IsDir() {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user