Skip to content

Commit 1882278

Browse files
MRtecno98bep
authored andcommitted
Add sftpfs files ReadAt method
1 parent d92c300 commit 1882278

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: sftpfs/file.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ func (f *File) Read(b []byte) (n int, err error) {
6464
return f.fd.Read(b)
6565
}
6666

67-
// TODO
6867
func (f *File) ReadAt(b []byte, off int64) (n int, err error) {
69-
return 0, nil
68+
return f.fd.ReadAt(b, off)
7069
}
7170

7271
func (f *File) Readdir(count int) (res []os.FileInfo, err error) {

0 commit comments

Comments
 (0)