Feat: support apply append mode and overwrite mode for FileStream

This commit is contained in:
HFO4
2022-02-28 17:49:00 +08:00
parent 285611baf7
commit 118d738797
16 changed files with 32 additions and 41 deletions

View File

@@ -123,11 +123,10 @@ func (job *TransferTask) Do() {
Size: job.TaskProps.SrcSizes[file],
Name: path.Base(dst),
VirtualPath: path.Dir(dst),
Mode: fsctx.Create,
})
} else {
// 主机节点中转
err = fs.UploadFromPath(context.Background(), file, dst, true, fsctx.Create)
err = fs.UploadFromPath(context.Background(), file, dst, true, 0)
}
if err != nil {