Skip to content

Commit

Permalink
Add sftpfs files ReadAt method
Browse files Browse the repository at this point in the history
  • Loading branch information
MRtecno98 authored and bep committed Mar 6, 2023
1 parent d92c300 commit 1882278
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sftpfs/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1882278

Please sign in to comment.