Skip to content

Commit

Permalink
bug: client is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
izouxv committed Jan 1, 2024
1 parent 5c4385a commit e211396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sftpfs/sftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (s Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error
return nil, err
}
err = sshfsFile.Chmod(perm)
return &File{fd: sshfsFile}, err
return &File{fd: sshfsFile, client: s.client}, err
}

func (s Fs) Remove(name string) error {
Expand Down

0 comments on commit e211396

Please sign in to comment.