Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

hdfs: fix permissions for when directory is created

Lucas Messengera5bd26395ee3
diff --git a/backend/hdfs/object.go b/backend/hdfs/object.go
index 3b99c21db..304b8b27a 100644
--- a/backend/hdfs/object.go
+++ b/backend/hdfs/object.go
@@ -109,7 +109,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
dirname := path.Dir(realpath)
fs.Debugf(o.fs, "update [%s]", realpath)
- err := o.fs.client.MkdirAll(dirname, 755)
+ err := o.fs.client.MkdirAll(dirname, 0755)
if err != nil {
return err
}