Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

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

albertonyeaf593884b98
diff --git a/cmd/serve/ftp/ftp.go b/cmd/serve/ftp/ftp.go
index 28bd4325f..7e5423132 100644
--- a/cmd/serve/ftp/ftp.go
+++ b/cmd/serve/ftp/ftp.go
@@ -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
}