(c *gin.Context)
| 248 | } |
| 249 | |
| 250 | func (dr *driveRoute) deleteEntry(c *gin.Context) { |
| 251 | path := utils.CleanPath(c.Param("path")) |
| 252 | d := c.MustGet("drive").(types.IDrive) |
| 253 | |
| 254 | t, e := dr.runner.ExecuteAndWait(func(ctx types.TaskCtx) (any, error) { |
| 255 | return nil, d.Delete(ctx, path) |
| 256 | }, 2*time.Second, task.WithNameGroup(path, "drive/delete")) |
| 257 | if e != nil { |
| 258 | _ = c.Error(e) |
| 259 | return |
| 260 | } |
| 261 | SetResult(c, t) |
| 262 | } |
| 263 | |
| 264 | func (dr *driveRoute) upload(c *gin.Context) { |
| 265 | path := utils.CleanPath(c.Param("path")) |
nothing calls this directly
no test coverage detected