serve/ftp: use io.SeekEnd instead of os.SEEK_END (deprecated since Go 1.7)

This commit is contained in:
albertony 2023-03-25 23:24:21 +01:00
parent 930574c6e9
commit eaf593884b
1 changed files with 1 additions and 1 deletions

View File

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