forked from TrueCloudLab/rclone
serve/ftp: use io.SeekEnd instead of os.SEEK_END (deprecated since Go 1.7)
This commit is contained in:
parent
930574c6e9
commit
eaf593884b
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ func (d *Driver) PutFile(path string, data io.Reader, appendData bool) (n int64,
|
|||
}
|
||||
defer closeIO(path, of)
|
||||
|
||||
_, err = of.Seek(0, os.SEEK_END)
|
||||
_, err = of.Seek(0, io.SeekEnd)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue