"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
link: use "off" value for unset expiry
Nick Craig-Wood9393225a1dee
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex 371de6534..3f4bae51f 100755--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -1429,7 +1429,7 @@ func (f *Fs) PublicLink(ctx context.Context, remote string, expire fs.Duration,Password: f.opt.LinkPassword,}- if expire < fs.Duration(time.Hour*24*365*100) {+ if expire < fs.DurationOff {expiry := time.Now().Add(time.Duration(expire))share.Expiry = &expiry}diff --git a/cmd/link/link.go b/cmd/link/link.goindex bf72b659e..3367178c5 100644--- a/cmd/link/link.go+++ b/cmd/link/link.go@@ -3,7 +3,6 @@ package linkimport ("context""fmt"- "time""github.com/rclone/rclone/cmd""github.com/rclone/rclone/fs"@@ -13,7 +12,7 @@ import ()var (- expire = fs.Duration(time.Hour * 24 * 365 * 100)+ expire = fs.DurationOffunlink = false)