Is it possible to use os.walk over SSH?

前端 未结 2 934
逝去的感伤
逝去的感伤 2021-01-19 21:21

I\'m new to Python so forgive me if this is basic, I\'ve searched but can\'t find an answer. I\'m trying to convert a Perl script into Python (3.x) which connects to a remot

相关标签:
2条回答
  • 2021-01-19 21:53

    No, os.walk can't be used in this way.

    0 讨论(0)
  • 2021-01-19 21:53

    This looks like a usable walk-function. Currently not tested by me. https://pysftp.readthedocs.org/en/release_0.2.8/pysftp.html#pysftp.Connection.walktree

    0 讨论(0)
提交回复
热议问题