From 18822780c0b9d0d774412e076b42861b921c5137 Mon Sep 17 00:00:00 2001 From: MRtecno98 Date: Tue, 30 Aug 2022 23:11:34 +0200 Subject: [PATCH] Add sftpfs files ReadAt method --- sftpfs/file.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sftpfs/file.go b/sftpfs/file.go index eef14e3..324282f 100644 --- a/sftpfs/file.go +++ b/sftpfs/file.go @@ -64,9 +64,8 @@ func (f *File) Read(b []byte) (n int, err error) { return f.fd.Read(b) } -// TODO func (f *File) ReadAt(b []byte, off int64) (n int, err error) { - return 0, nil + return f.fd.ReadAt(b, off) } func (f *File) Readdir(count int) (res []os.FileInfo, err error) {