"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
fichier: implement public link
buengese59ed70ca91cd
diff --git a/backend/fichier/fichier.go b/backend/fichier/fichier.goindex 7b722b34a..4dcef4eee 100644--- a/backend/fichier/fichier.go+++ b/backend/fichier/fichier.go@@ -483,11 +483,21 @@ func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object,return dstObj, nil}+// PublicLink adds a "readable by anyone with link" permission on the given file or folder.+func (f *Fs) PublicLink(ctx context.Context, remote string, expire fs.Duration, unlink bool) (string, error) {+ o, err := f.NewObject(ctx, remote)+ if err != nil {+ return "", err+ }+ return o.(*Object).file.URL, nil+}+// Check the interfaces are satisfiedvar (_ fs.Fs = (*Fs)(nil)_ fs.Mover = (*Fs)(nil)_ fs.Copier = (*Fs)(nil)+ _ fs.PublicLinker = (*Fs)(nil)_ fs.PutUncheckeder = (*Fs)(nil)_ dircache.DirCacher = (*Fs)(nil))diff --git a/docs/content/overview.md b/docs/content/overview.mdindex 23da7e105..21b0a13c8 100644--- a/docs/content/overview.md+++ b/docs/content/overview.md@@ -330,7 +330,7 @@ upon backend specific capabilities.| Name | Purge | Copy | Move | DirMove | CleanUp | ListR | StreamUpload | LinkSharing | About | EmptyDir || ---------------------------- |:-----:|:----:|:----:|:-------:|:-------:|:-----:|:------------:|:------------:|:-----:| :------: |-| 1Fichier | No | Yes | Yes | No | No | No | No | No | No | Yes |+| 1Fichier | No | Yes | Yes | No | No | No | No | Yes | No | Yes || Amazon Drive | Yes | No | Yes | Yes | No [#575](https://github.com/rclone/rclone/issues/575) | No | No | No [#2178](https://github.com/rclone/rclone/issues/2178) | No | Yes || Amazon S3 | No | Yes | No | No | Yes | Yes | Yes | No [#2178](https://github.com/rclone/rclone/issues/2178) | No | No || Backblaze B2 | No | Yes | No | No | Yes | Yes | Yes | Yes | No | No |