|
|
@@ -556,7 +556,11 @@ func (h *Handler) handlePropfind(w http.ResponseWriter, r *http.Request) (status
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
- return mw.write(makePropstatResponse(path.Join(h.Prefix, reqPath), pstats))
|
|
|
+ href := path.Join(h.Prefix, reqPath)
|
|
|
+ if info.IsDir() {
|
|
|
+ href += "/"
|
|
|
+ }
|
|
|
+ return mw.write(makePropstatResponse(href, pstats))
|
|
|
}
|
|
|
|
|
|
walkErr := walkFS(ctx, h.FileSystem, depth, reqPath, fi, walkFn)
|