2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-09 04:12:25 +00:00

Merge pull request #1643 from restic/fix-1641

Ignore files in the repo with invalid names
This commit is contained in:
Alexander Neumann 2018-02-26 21:18:05 +01:00
commit 89075bdf6d

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)
})