From e2113964d546c7ece9848cc4d697d6714ca7407d Mon Sep 17 00:00:00 2001 From: zouxu Date: Mon, 1 Jan 2024 16:11:25 +0800 Subject: [PATCH] bug: client is nil --- sftpfs/sftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sftpfs/sftp.go b/sftpfs/sftp.go index eadf1e07..c73752e5 100644 --- a/sftpfs/sftp.go +++ b/sftpfs/sftp.go @@ -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 {