mirror of
https://github.com/restic/restic.git
synced 2025-03-30 00:00:14 +01:00
14 lines
348 B
Go
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++
|
|
}
|
|
}
|