Update after API changes in goamz/s3

This commit is contained in:
Nick Craig-Wood 2013-02-06 23:31:42 +00:00
parent 4cce906f8b
commit 4cda51b77a

View File

@ -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,