mirror of
https://github.com/restic/restic.git
synced 2026-11-15 10:26:43 +00:00
Fix nil check in rejectBySize
This commit is contained in:
1 parent
1cfb01a8a6
commit
3cf29a777d
2 files changed
+11
No files matched your search
@@ -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