From 4cda51b77a297105986843cbefa5782bda7ba945 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 6 Feb 2013 23:31:42 +0000 Subject: [PATCH] Update after API changes in goamz/s3 --- fs_s3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs_s3.go b/fs_s3.go index 916de500f..0bf93b921 100644 --- a/fs_s3.go +++ b/fs_s3.go @@ -196,12 +196,12 @@ func (f *FsS3) ListDir() FsDirChan { out := make(FsDirChan, *checkers) go func() { defer close(out) - buckets, err := f.c.List() + buckets, err := f.c.ListBuckets() if err != nil { stats.Error() log.Printf("Couldn't list buckets: %s", err) } else { - for _, bucket := range buckets.Buckets { + for _, bucket := range buckets { when, _ := time.Parse(time.RFC3339, bucket.CreationDate) out <- &FsDir{ Name: bucket.Name,