I have a host system with two systems on it (HP Nonstop). With Python ftplib I can use
ftp = FTP()
ftp.encoding = encoding
ftp.connect(host_addr, ftp_port)
ftp.sendcmd('guardian')
to use the Guardian system paths ($X.PATH.FILENAME
) or use
ftp = FTP()
ftp.encoding = encoding
ftp.connect(host_addr, ftp_port)
ftp.sendcmd('oss')
to use the OSS system paths (unix like)
For SFTP I use Paramiko. But I cannot use the guardian paths because I cannot find a command like sendcmd
.
transport = paramiko.Transport((host_addr, ssh_port))
sftp = paramiko.SFTPClient.from_transport(transport)