1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-30 00:00:14 +01:00
restic/internal/ui/restore/progress_windows.go
2024-12-03 18:00:14 +05:30

14 lines
348 B
Go

package restore
import (
"encoding/json"
"github.com/restic/restic/internal/restic"
)
// incrementFilesFinished increments the files finished count if it is a main file
func (p *Progress) incrementFilesFinished(attrs map[restic.GenericAttributeType]json.RawMessage) {
if string(attrs[restic.TypeIsADS]) != "true" {
p.s.FilesFinished++
}
}