cmd/serve/ftp: replace deprecated os.SEEK_SET with io.SeekStart

This commit is contained in:
Lars Lehtonen 2020-02-05 09:58:29 -08:00 committed by Nick Craig-Wood
parent fe6f4135b4
commit 4ee3c21a9d

View File

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