mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 10:13:52 +08:00
cmd/serve/ftp: replace deprecated os.SEEK_SET with io.SeekStart
This commit is contained in:
parent
fe6f4135b4
commit
4ee3c21a9d
|
@ -442,7 +442,7 @@ func (d *Driver) GetFile(path string, offset int64) (size int64, fr io.ReadClose
|
|||
if err != nil {
|
||||
return 0, nil, err
|
||||
}
|
||||
_, err = handle.Seek(offset, os.SEEK_SET)
|
||||
_, err = handle.Seek(offset, io.SeekStart)
|
||||
if err != nil {
|
||||
return 0, nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user