"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: correctly handle trailing dot
buengese9c858c3228f7
diff --git a/backend/crypt/crypt.go b/backend/crypt/crypt.goindex 56d9cabf5..eabb2623e 100644--- a/backend/crypt/crypt.go+++ b/backend/crypt/crypt.go@@ -5,6 +5,7 @@ import ("context""fmt""io"+ "path""strings""time"@@ -144,6 +145,10 @@ func NewFs(name, rpath string, m configmap.Mapper) (fs.Fs, error) {if err != nil {return nil, errors.Wrapf(err, "failed to parse remote %q to wrap", remote)}+ // Make sure to remove trailing . reffering to the current dir+ if path.Base(rpath) == "." {+ rpath = strings.TrimSuffix(rpath, ".")+ }// Look for a file firstremotePath := fspath.JoinRootPath(wPath, cipher.EncryptFileName(rpath))wrappedFs, err := wInfo.NewFs(wName, remotePath, wConfig)