carletes / mock-ssh-server

Python mock SSH server for testing purposes
MIT License
56 stars 32 forks source link

Added SFTPHandle stat method implementation #13

Closed swiatek25 closed 4 years ago

swiatek25 commented 4 years ago

Requirement case from paramiko.prefetch mechanism. Paramiko internally calls: resp = self.file_table[handle].stat() where self.file_table[handle] return instance of mockssh.sftp.SFTPHandle class.

carletes commented 4 years ago

Thanks, @swiatek25! Merging now.

carletes commented 4 years ago

... and uploaded to PyPI, as well. Enjoy!

swiatek25 commented 4 years ago

Thanks a lot @carletes!