Closed swiatek25 closed 4 years ago
Thanks, @swiatek25! Your implementation of the stat()
method for SFTPHandle
looks OK.
Could you perhaps open a pull request? (with a couple of tests, ideally!) I'm quite busy nowadays, and won't be able to do it myself in a reasonable time frame.
Closing in favor of https://github.com/carletes/mock-ssh-server/pull/13
I have a client use case where I do:
Unfortunately paramiko internally calls:
resp = self.file_table[handle].stat()
whereself.file_table[handle]
return instance ofmockssh.sftp.SFTPHandle
that lacks this method.I now patch my tests with following
stat()
method implementation:Maybe we could make it the default or support it in any other way?