Add sftpfs files ReadAt method

This commit is contained in:
MRtecno98 2022-08-30 23:11:34 +02:00
parent 2a70f2bb2d
commit b25655bc07
1 changed files with 1 additions and 2 deletions

View File

@ -64,9 +64,8 @@ func (f *File) Read(b []byte) (n int, err error) {
return f.fd.Read(b) return f.fd.Read(b)
} }
// TODO
func (f *File) ReadAt(b []byte, off int64) (n int, err error) { 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) { func (f *File) Readdir(count int) (res []os.FileInfo, err error) {