background :
I’m using request-server Server() and overwrite Filelist method,
I'm trying to get the current working directory of the sftp server, but every time i call getwd() method get same result "/root" ,i wannna know what’s the point to influence this result
So, getwd is in sftp just an alias for sshfx.RealPathPacket{ Path: "." }. So, if you override the Filelist method, you will also need to implement sftp.RealPathFileLister as well.
background : I’m using request-server Server() and overwrite Filelist method,
I'm trying to get the current working directory of the sftp server, but every time i call getwd() method get same result "/root" ,i wannna know what’s the point to influence this result