filer: support uploading file without needEnsureParentDir

This commit is contained in:
zzq09494
2022-03-17 10:53:47 +08:00
parent a6a8892255
commit 81cce4b4c3
7 changed files with 19 additions and 13 deletions

View File

@@ -43,7 +43,7 @@ func (f *Filer) appendToFile(targetFile string, data []byte) error {
entry.Chunks = append(entry.Chunks, uploadResult.ToPbFileChunk(assignResult.Fid, offset))
// update the entry
err = f.CreateEntry(context.Background(), entry, false, false, nil)
err = f.CreateEntry(context.Background(), entry, false, false, nil,true)
return err
}