Reputation: 111
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
Reputation: 417
Append ",101" to the target file name and maybe use storlines rather than storbinary.
Upvotes: 1