This commit is contained in:
Shreyas Goenka 2025-01-02 18:11:35 +05:30
parent 583637aed6
commit 9552131a2a
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ func NewDbfsClient(w *databricks.WorkspaceClient, root string) (Filer, error) {
// The PUT API for DBFS requires setting the content length header beforehand in the HTTP // The PUT API for DBFS requires setting the content length header beforehand in the HTTP
// request. // request.
func putContentLength(path string, overwriteField string, file *os.File) (int64, error) { func putContentLength(path, overwriteField string, file *os.File) (int64, error) {
buf := &bytes.Buffer{} buf := &bytes.Buffer{}
writer := multipart.NewWriter(buf) writer := multipart.NewWriter(buf)
err := writer.WriteField("path", path) err := writer.WriteField("path", path)