(t *Transfer, action string)
| 379 | } |
| 380 | |
| 381 | func (a *SSHAdapter) argumentsForTransfer(t *Transfer, action string) []string { |
| 382 | args := make([]string, 0, 3) |
| 383 | set, ok := t.Actions[action] |
| 384 | if !ok { |
| 385 | return nil |
| 386 | } |
| 387 | args = append(args, fmt.Sprintf("size=%d", t.Size)) |
| 388 | if set.Id != "" { |
| 389 | args = append(args, fmt.Sprintf("id=%s", set.Id)) |
| 390 | } |
| 391 | if set.Token != "" { |
| 392 | args = append(args, fmt.Sprintf("token=%s", set.Token)) |
| 393 | } |
| 394 | return args |
| 395 | } |
| 396 | |
| 397 | // Begin a new batch of uploads or downloads. Call this first, followed by one |
| 398 | // or more Add calls. The passed in callback will receive updates on progress. |
no outgoing calls
no test coverage detected