"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
drive: Add "Forbidden to download" message for files with no downloadURL - fixes #95
Nick Craig-Wood88ea8b305d1e
diff --git a/drive/drive.go b/drive/drive.goindex d73705058..7420fca37 100644--- a/drive/drive.go+++ b/drive/drive.go@@ -962,6 +962,9 @@ func (o *FsObjectDrive) Storable() bool {// Open an object for readfunc (o *FsObjectDrive) Open() (in io.ReadCloser, err error) {+ if o.url == "" {+ return nil, fmt.Errorf("Forbidden to download - check sharing permission")+ }req, err := http.NewRequest("GET", o.url, nil)if err != nil {return nil, err