Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions sftpfs/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (f *File) Stat() (os.FileInfo, error) {
}

func (f *File) Sync() error {
return nil
return f.fd.Sync()
}

func (f *File) Truncate(size int64) error {
Expand All @@ -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 Expand Up @@ -101,9 +100,8 @@ func (f *File) Write(b []byte) (n int, err error) {
return f.fd.Write(b)
}

// TODO
func (f *File) WriteAt(b []byte, off int64) (n int, err error) {
return 0, nil
return f.fd.WriteAt(b, off)
}

func (f *File) WriteString(s string) (ret int, err error) {
Expand Down