working commit
This commit is contained in:
+8
-3
@@ -8,7 +8,12 @@ import (
|
||||
func (hand *Handler) FileExists(rctx *router.Context) {
|
||||
hand.logg.Debugf("handle FileExists")
|
||||
|
||||
params := &operator.FileExistsParams{}
|
||||
res, _ := hand.oper.FileExists(params)
|
||||
rctx.SetStatus(res.Code)
|
||||
filepath := rctx.PathMap["filepath"]
|
||||
params := &operator.FileExistsParams{
|
||||
Filepath: filepath,
|
||||
}
|
||||
hand.logg.Debugf("filepath: %s", filepath)
|
||||
|
||||
code, _, _ := hand.oper.FileExists(params)
|
||||
rctx.SetStatus(code)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user