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

fstests: make tests pass when using -remote :backend:

Nick Craig-Wood86dcb54c38d8
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go
index 2c07b941d..310b31a91 100644
--- a/fstest/fstests/fstests.go
+++ b/fstest/fstests/fstests.go
@@ -429,7 +429,7 @@ func Run(t *testing.T, opt *Opt) {
t.Run("FsName", func(t *testing.T) {
skipIfNotOk(t)
got := remote.Name()
- want := remoteName[:strings.IndexRune(remoteName, ':')+1]
+ want := remoteName[:strings.LastIndex(remoteName, ":")+1]
if isLocalRemote {
want = "local:"
}