MCPcopy Create free account
hub / github.com/Illusionna/LocalTransfer / CopyFileHandler

Function CopyFileHandler

handler.go:351–358  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

349
350
351func CopyFileHandler(w http.ResponseWriter, r *http.Request) {
352 var selected_file []FILE_REQUEST
353 if err := json.NewDecoder(r.Body).Decode(&selected_file); err != nil {
354 http.Error(w, "[* HTTP 400]: invalid request body.", http.StatusBadRequest)
355 return
356 }
357 CopySelectedFile(selected_file)
358}
359
360
361// 移动文件.

Callers

nothing calls this directly

Calls 1

CopySelectedFileFunction · 0.70

Tested by

no test coverage detected