"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
serve webdav: fix --baseurl without leading /
Nick Craig-Wood072d1f10ab41
diff --git a/cmd/serve/webdav/webdav.go b/cmd/serve/webdav/webdav.goindex f482d13d5..e40eb6508 100644--- a/cmd/serve/webdav/webdav.go+++ b/cmd/serve/webdav/webdav.go@@ -203,6 +203,9 @@ func newWebDAV(ctx context.Context, f fs.Fs, opt *Options) (w *WebDAV, err errorreturn nil, fmt.Errorf("failed to init server: %w", err)}+ // Make sure BaseURL starts with a / and doesn't end with one+ w.opt.HTTP.BaseURL = "/" + strings.Trim(w.opt.HTTP.BaseURL, "/")+webdavHandler := &webdav.Handler{Prefix: w.opt.HTTP.BaseURL,FileSystem: w,