1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-31 07:33:33 +00:00

Remove io.SeekStart and replace with 0 as it is go 1.7 only

This commit is contained in:
Nick Craig-Wood
2016-10-22 12:07:51 +01:00
parent 5b8327038a
commit 93e84403bb
3 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ func (fh *ReadFileHandle) seek(offset int64) error {
// Can we seek it directly?
if do, ok := fh.r.(io.Seeker); ok {
fs.Debug(fh.o, "ReadFileHandle.seek from %d to %d (io.Seeker)", fh.offset, offset)
_, err := do.Seek(offset, io.SeekStart)
_, err := do.Seek(offset, 0)
if err != nil {
fs.Debug(fh.o, "ReadFileHandle.Read io.Seeker failed: %v", err)
return err