(dst, name, sourcePath string, sourceCount int)
| 963 | } |
| 964 | |
| 965 | func buildHistoryMoveTargetPath(dst, name, sourcePath string, sourceCount int) string { |
| 966 | if strings.TrimSpace(dst) == "" { |
| 967 | return sourcePath |
| 968 | } |
| 969 | if strings.TrimSpace(name) != "" && sourceCount == 1 { |
| 970 | return filepath.Join(dst, name) |
| 971 | } |
| 972 | return filepath.Join(dst, filepath.Base(sourcePath)) |
| 973 | } |
| 974 | |
| 975 | func (f *FileService) FileDownload(d request.FileDownload) (string, error) { |
| 976 | for _, p := range d.Paths { |