1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 00:07:25 +00:00

Ignore files in the repo with invalid names

Closes #1641
This commit is contained in:
Alexander Neumann 2018-02-26 20:53:38 +01:00
parent aef5e03731
commit c323f73bf9

View file

@ -546,6 +546,7 @@ func (r *Repository) List(ctx context.Context, t restic.FileType, fn func(restic
id, err := restic.ParseID(fi.Name)
if err != nil {
debug.Log("unable to parse %v as an ID", fi.Name)
return nil
}
return fn(id, fi.Size)
})