local: open files in write only mode so they can write to an rclone mount
Fixes #1195
This commit is contained in:
parent
1d42a343d2
commit
fdaac6df67
1 changed files with 1 additions and 1 deletions
|
@ -702,7 +702,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo) error {
|
|||
return err
|
||||
}
|
||||
|
||||
out, err := os.Create(o.path)
|
||||
out, err := os.OpenFile(o.path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0666)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue