1
0
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 
This commit is contained in:
Nick Craig-Wood
2017-03-02 21:46:28 +00:00
parent 1d42a343d2
commit fdaac6df67

@ -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
}