Manish Wadile
Manish Wadile

Reputation: 111

how to FTP Enscribed file type of "U" to HP TANDEM non-stop server using python ftplib?

I have created a program to download file using ftplib and after editing the file content , I have uploaded to the HP TANDEM SERVER but the file is in ASCII format and it should be reflected as Enscribe file type "U" code 101,but it is reflecting as 180+ coded file, I have used following code to upload a file: ftp.storbinary('STOR ' + cwd, file)

Upvotes: -1

Views: 190

Answers (1)

Andy Simpson
Andy Simpson

Reputation: 417

Append ",101" to the target file name and maybe use storlines rather than storbinary.

Upvotes: 1

Related Questions