"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
crypt: fix Name and Root
Nick Craig-Wood5b913884cf1d
diff --git a/crypt/crypt.go b/crypt/crypt.goindex d457a91f3..69dfbb52a 100644--- a/crypt/crypt.go+++ b/crypt/crypt.go@@ -86,6 +86,8 @@ func NewFs(name, rpath string) (fs.Fs, error) {Fs: wrappedFs,cipher: cipher,mode: mode,+ name: name,+ root: rpath,}return f, err}@@ -95,6 +97,18 @@ type Fs struct {fs.Fscipher Ciphermode NameEncryptionMode+ name string+ root string+}++// Name of the remote (as passed into NewFs)+func (f *Fs) Name() string {+ return f.name+}++// Root of the remote (as passed into NewFs)+func (f *Fs) Root() string {+ return f.root}// String returns a description of the FS