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:
parent
218778d212
commit
2644d55b14
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue