"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
rcd: prefix patch for rcd and web-gui
Chaitanya159f2e29a89e
diff --git a/cmd/serve/httplib/httpflags/httpflags.go b/cmd/serve/httplib/httpflags/httpflags.goindex 46383e212..6b38748e9 100644--- a/cmd/serve/httplib/httpflags/httpflags.go+++ b/cmd/serve/httplib/httpflags/httpflags.go@@ -26,9 +26,8 @@ func AddFlagsPrefix(flagSet *pflag.FlagSet, prefix string, Opt *httplib.Options)flags.StringVarP(flagSet, &Opt.Realm, prefix+"realm", "", Opt.Realm, "realm for authentication")flags.StringVarP(flagSet, &Opt.BasicUser, prefix+"user", "", Opt.BasicUser, "User name for authentication.")flags.StringVarP(flagSet, &Opt.BasicPass, prefix+"pass", "", Opt.BasicPass, "Password for authentication.")- if prefix == "" {- flags.StringVarP(flagSet, &Opt.Prefix, prefix+"prefix", "", Opt.Prefix, "Prefix for URLs.")- }+ flags.StringVarP(flagSet, &Opt.Prefix, prefix+"prefix", "", Opt.Prefix, "Prefix for URLs.")+}// AddFlags adds flags for the httplibdiff --git a/fs/rc/rcserver/rcserver.go b/fs/rc/rcserver/rcserver.goindex b74d7b4c5..f52faa761 100644--- a/fs/rc/rcserver/rcserver.go+++ b/fs/rc/rcserver/rcserver.go@@ -138,7 +138,11 @@ func writeError(path string, in rc.Params, w http.ResponseWriter, err error, sta// handler reads incoming requests and dispatches themfunc (s *Server) handler(w http.ResponseWriter, r *http.Request) {- path := strings.TrimLeft(r.URL.Path, "/")+ urlPath, ok := s.Path(w, r)+ if !ok {+ return+ }+ path := strings.TrimLeft(urlPath, "/")allowOrigin := rcflags.Opt.AccessControlAllowOriginif allowOrigin != "" {@@ -311,6 +315,7 @@ func (s *Server) handleGet(w http.ResponseWriter, r *http.Request, path string)returncase s.files != nil:// Serve the files+ r.URL.Path = "/" + paths.files.ServeHTTP(w, r)returncase path == "" && s.opt.Serve: