From ec9a3e63a5809e33dcf5e5307c541b2417238b7c Mon Sep 17 00:00:00 2001 From: URenko <18209292+URenko@users.noreply.github.com> Date: Sat, 3 Aug 2024 13:51:53 +0000 Subject: [PATCH] debug --- server/webdav/webdav.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/webdav/webdav.go b/server/webdav/webdav.go index b84e65b06b7a..71da7e83ea7e 100644 --- a/server/webdav/webdav.go +++ b/server/webdav/webdav.go @@ -25,6 +25,8 @@ import ( "github.com/alist-org/alist/v3/pkg/utils" "github.com/alist-org/alist/v3/server/common" log "github.com/sirupsen/logrus" + + pkgerr "github.com/pkg/errors" ) type Handler struct { @@ -632,9 +634,16 @@ func (h *Handler) handlePropfind(w http.ResponseWriter, r *http.Request) (status } fi, err := fs.Get(ctx, reqPath, &fs.GetArgs{}) if err != nil { + fmt.Println("======================") + fmt.Println(err) + fmt.Println("======================") + fmt.Println(pkgerr.Cause(err)) + fmt.Println("======================") if errs.IsNotFoundError(err) { + fmt.Println("进入") return http.StatusNotFound, err } + fmt.Println("进入") return http.StatusMethodNotAllowed, err } depth := infiniteDepth