"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
iclouddrive: fix potential crash looking up items
Nick Craig-Wood1e92520076cc
diff --git a/backend/iclouddrive/iclouddrive.go b/backend/iclouddrive/iclouddrive.goindex 3c78e3bce..a2e6cbc87 100644--- a/backend/iclouddrive/iclouddrive.go+++ b/backend/iclouddrive/iclouddrive.go@@ -92,7 +92,7 @@ func (f *Fs) findItem(ctx context.Context, dir string) (item *api.DriveItem, fouitem, resp, err = f.service.GetItemByPath(ctx, path.Join(f.root, dir))return shouldRetry(ctx, resp, err)}); err != nil {- if item == nil && resp.StatusCode == 404 {+ if item == nil && resp != nil && resp.StatusCode == 404 {return nil, false, nil}return nil, false, err