Skip to content

Commit

Permalink
nfs: implement Name() method in WriteFileHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
Saleh Dindar committed Sep 11, 2023
1 parent 6853b25 commit 7654473
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vfs/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,8 @@ func (fh *WriteFileHandle) ReadAt(p []byte, off int64) (n int, err error) {
func (fh *WriteFileHandle) Sync() error {
return nil
}

// Name returns the name of the file from the underlying Object.
func (fh *WriteFileHandle) Name() string {
return fh.file.String()
}

0 comments on commit 7654473

Please sign in to comment.