Browse Source

注释文件块

master
xyiege 2 months ago
parent
commit
7f3611d822
  1. 3
      scagent/core/UpFile.go

3
scagent/core/UpFile.go

@ -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

Loading…
Cancel
Save