Is it possible to use os.walk over SSH?

前端 未结 2 937
逝去的感伤
逝去的感伤 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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

提交回复
热议问题