Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about getwd() method #543

Open
SwagLYY opened this issue Mar 17, 2023 · 1 comment
Open

Question about getwd() method #543

SwagLYY opened this issue Mar 17, 2023 · 1 comment

Comments

@SwagLYY
Copy link

SwagLYY commented Mar 17, 2023

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

@puellanivis
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants