"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
fstest: skip Copy mutation test with --sftp-copy-is-hardlink
Nick Craig-Woodecc5972d6fc7
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.goindex 78f716dcb..cc6983024 100644--- a/fstest/fstests/fstests.go+++ b/fstest/fstests/fstests.go@@ -1273,12 +1273,14 @@ func Run(t *testing.T, opt *Opt) {assert.Equal(t, file2Copy.Path, dst.Remote())// check that mutating dst does not mutate src- err = dst.SetModTime(ctx, fstest.Time("2004-03-03T04:05:06.499999999Z"))- if err != fs.ErrorCantSetModTimeWithoutDelete && err != fs.ErrorCantSetModTime {- assert.NoError(t, err)- // Re-read the source and check its modtime- src = fstest.NewObject(ctx, t, f, src.Remote())- assert.False(t, src.ModTime(ctx).Equal(dst.ModTime(ctx)), "mutating dst should not mutate src -- is it Copying by pointer?")+ if !strings.Contains(fs.ConfigStringFull(f), "copy_is_hardlink") {+ err = dst.SetModTime(ctx, fstest.Time("2004-03-03T04:05:06.499999999Z"))+ if err != fs.ErrorCantSetModTimeWithoutDelete && err != fs.ErrorCantSetModTime {+ assert.NoError(t, err)+ // Re-read the source and check its modtime+ src = fstest.NewObject(ctx, t, f, src.Remote())+ assert.False(t, src.ModTime(ctx).Equal(dst.ModTime(ctx)), "mutating dst should not mutate src -- is it Copying by pointer?")+ }}// Delete copy