mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
Update after API changes in goamz/s3
This commit is contained in:
parent
4cce906f8b
commit
4cda51b77a
4
fs_s3.go
4
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,
|
||||
|
Loading…
Reference in New Issue
Block a user