Files
mstore/app/handler/file.go
T
2026-01-23 19:26:56 +02:00

20 lines
384 B
Go

package handler
import (
"mstore/app/operator"
"mstore/app/router"
)
func (hand *Handler) FileExists(rctx *router.Context) {
hand.logg.Debugf("handle FileExists")
filepath := rctx.PathMap["filepath"]
params := &operator.FileExistsParams{
Filepath: filepath,
}
hand.logg.Debugf("filepath: %s", filepath)
code, _, _ := hand.oper.FileExists(params)
rctx.SetStatus(code)
}