mirror of
https://github.com/rclone/rclone.git
synced 2025-07-15 19:55:26 +02:00
local: open files in write only mode so they can write to an rclone mount
Fixes #1195
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user