This commit is contained in:
Chris Lu 2020-09-16 00:37:57 -07:00
parent 10f9081526
commit 854007bc98

View file

@ -552,9 +552,9 @@ func (f *WebDavFile) Seek(offset int64, whence int) (int64, error) {
var err error
switch whence {
case 0:
case io.SeekStart:
f.off = 0
case 2:
case io.SeekEnd:
if fi, err := f.fs.stat(ctx, f.name); err != nil {
return 0, err
} else {