|
|
|
@ -1,7 +1,6 @@ |
|
|
|
package core |
|
|
|
|
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"io" |
|
|
|
"os" |
|
|
|
"path/filepath" |
|
|
|
@ -60,7 +59,7 @@ func (f *UpFileService) SendFileInfo(info FileInfo, reply *string) error { |
|
|
|
// SendFileChunk 接收文件块并写入文件
|
|
|
|
func (f *UpFileService) SendFileChunk(chunk FileChunk, reply *bool) error { |
|
|
|
// filePath := filepath.Join("received_files", chunk.FileName)
|
|
|
|
fmt.Printf("recive file :%s", chunk.FileName) |
|
|
|
// fmt.Printf("recive file :%s", chunk.FileName)
|
|
|
|
// 合并为实际路径
|
|
|
|
// filePath := filepath.Join("received_files", chunk.FileName)
|
|
|
|
filePath := chunk.FileName |
|
|
|
|