D
D
Denis2019-05-20 20:25:17
Python
Denis, 2019-05-20 20:25:17

Os.listdir or is there any analogue?

found such a thing as os.listdir, it supposedly shows all the files in the directory. the syntax is: os.listdir( path ). I understand the path is specified on the local machine. Can I use this function to list files from a specific directory on a remote machine. If not through os.listdir, then how can this be implemented?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2019-05-21
@cicada3301

use Paramiko and may the force be with you :)

D
Denis, 2019-05-20
@Norkotik

You can. via ssh.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question