How to Open the remote server folder >
inside the folder only images store we read all the images.
Server is Linux server
import paramiko
import sys
import os
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('<server-Ip-address>', username='******', password='******')
ftp = ssh.open_sftp()
#filea = ftp.get('/var/www/folder_image/', '#')
#Here coded how we open the dir and read one by one all images property(name,size,path,etc.)
ftp.close()
I used this code
So please kindly reply
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…