MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / move

Method move

drivers/febbox/util.go:164–179  ·  view source on GitHub ↗
(id string, id2 string)

Source from the content-addressed store, hash-verified

162}
163
164func (d *FebBox) move(id string, id2 string) error {
165 queryParams := map[string]string{
166 "module": "file_move",
167 "fids[]": id,
168 "to": id2,
169 }
170
171 _, err := d.request("https://api.febbox.com/oauth", http.MethodPost, func(req *resty.Request) {
172 req.SetMultipartFormData(queryParams)
173 }, nil)
174 if err != nil {
175 return err
176 }
177
178 return nil
179}
180
181func (d *FebBox) rename(id string, name string) error {
182 queryParams := map[string]string{

Callers 1

MoveMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected