1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00

Simple fix to get correct object ID

This commit is contained in:
jayme-github 2016-12-12 17:10:42 +01:00
parent 218778d212
commit 2644d55b14

View file

@ -247,7 +247,8 @@ func (be *s3) List(t restic.FileType, done <-chan struct{}) <-chan string {
go func() {
defer close(ch)
for obj := range listresp {
m := strings.TrimPrefix(obj.Key, prefix)
s := strings.Split(obj.Key, "/")
m := s[len(s)-1]
if m == "" {
continue
}