Update after API changes in goamz/s3
This commit is contained in:
parent
4cce906f8b
commit
4cda51b77a
1 changed files with 2 additions and 2 deletions
4
fs_s3.go
4
fs_s3.go
|
@ -196,12 +196,12 @@ func (f *FsS3) ListDir() FsDirChan {
|
||||||
out := make(FsDirChan, *checkers)
|
out := make(FsDirChan, *checkers)
|
||||||
go func() {
|
go func() {
|
||||||
defer close(out)
|
defer close(out)
|
||||||
buckets, err := f.c.List()
|
buckets, err := f.c.ListBuckets()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
stats.Error()
|
stats.Error()
|
||||||
log.Printf("Couldn't list buckets: %s", err)
|
log.Printf("Couldn't list buckets: %s", err)
|
||||||
} else {
|
} else {
|
||||||
for _, bucket := range buckets.Buckets {
|
for _, bucket := range buckets {
|
||||||
when, _ := time.Parse(time.RFC3339, bucket.CreationDate)
|
when, _ := time.Parse(time.RFC3339, bucket.CreationDate)
|
||||||
out <- &FsDir{
|
out <- &FsDir{
|
||||||
Name: bucket.Name,
|
Name: bucket.Name,
|
||||||
|
|
Loading…
Reference in a new issue