"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
seafile: don't implement IDer as the id is a content hash not a unique ID
TowyTowyf2e43b7c14c7
diff --git a/backend/seafile/object.go b/backend/seafile/object.goindex 25257825a..97933b1a4 100644--- a/backend/seafile/object.go+++ b/backend/seafile/object.go@@ -12,7 +12,6 @@ import (// Object describes a seafile object (also commonly called a file)type Object struct {fs *Fs // what this object is part of- id string // internal ID of objectremote string // The remote path (full path containing library name if target at root)pathInLibrary string // Path of the object without the library namesize int64 // size of the object@@ -107,7 +106,6 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op}// Set the properties from the upload back to the objecto.size = uploaded.Size- o.id = uploaded.IDreturn nil}@@ -118,10 +116,3 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, opfunc (o *Object) Remove(ctx context.Context) error {return o.fs.deleteFile(ctx, o.libraryID, o.pathInLibrary)}--// ==================== Optional Interface fs.IDer ====================--// ID returns the ID of the Object if known, or "" if not-func (o *Object) ID() string {- return o.id-}diff --git a/backend/seafile/seafile.go b/backend/seafile/seafile.goindex 1151def5f..fbdad6b58 100644--- a/backend/seafile/seafile.go+++ b/backend/seafile/seafile.go@@ -550,7 +550,6 @@ func (f *Fs) NewObject(ctx context.Context, remote string) (fs.Object, error) {o := &Object{fs: f,libraryID: libraryID,- id: fileDetails.ID,remote: remote,pathInLibrary: filePath,modTime: modTime,@@ -1239,7 +1238,6 @@ func (f *Fs) buildDirEntries(parentPath, libraryID, parentPathInLibrary string,} else if entry.Type == api.FileTypeFile {object := &Object{fs: f,- id: entry.ID,remote: filePath,pathInLibrary: filePathInLibrary,size: entry.Size,@@ -1359,5 +1357,4 @@ var (_ fs.UserInfoer = &Fs{}_ fs.Shutdowner = &Fs{}_ fs.Object = &Object{}- _ fs.IDer = &Object{})