"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
sftp: don't check remote points to a file if it ends with /
Nick Craig-Wood2cd85813b41a
diff --git a/backend/sftp/sftp.go b/backend/sftp/sftp.goindex f4a21b3c7..aaec27b60 100644--- a/backend/sftp/sftp.go+++ b/backend/sftp/sftp.go@@ -1066,7 +1066,7 @@ func NewFsWithConnection(ctx context.Context, f *Fs, name string, root string, m}}f.putSftpConnection(&c, err)- if root != "" {+ if root != "" && !strings.HasSuffix(root, "/") {// Check to see if the root is actually an existing file,// and if so change the filesystem root to its parent directory.oldAbsRoot := f.absRoot