Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

sftp: fix compile for go1.6

Nick Craig-Woodbced73c947d2
diff --git a/sftp/sftp.go b/sftp/sftp.go
index a7a696b44..3f65aea97 100644
--- a/sftp/sftp.go
+++ b/sftp/sftp.go
@@ -5,7 +5,6 @@
package sftp
import (
- "context"
"io"
"io/ioutil"
"os"
@@ -20,6 +19,7 @@ import (
"github.com/pkg/sftp"
"github.com/xanzy/ssh-agent"
"golang.org/x/crypto/ssh"
+ "golang.org/x/net/context"
"golang.org/x/time/rate"
)