May 5th, 2005, 10:14 PM
No one Important
Join Date: Aug 2000
Time spent in forums: 12 h 38 m 24 sec
Reputation Power: 14
Hi all trying to upload a html snippet file from a windows machine to a unix server.
Basically the code is all working except for when I am sending a ftp.storlines it appears not be sending the complete file......
This is what I am currently using...
print '*** Changing server dir to: ', PUT_DIR
print '*** UPLOADING CURRENT SNIPPET: ', PUT_FILENAME
ftp.storlines('STOR ' + PUT_FILENAME,open(LOCAL_FILENAME, 'f'))
print '*** UNABLE TO UPLOAD FILE'
When the file is on the windows machine it is complete, however when it ends up on the server it is incomplete, it is like it has only sent three quarters of the file.
Has anyone got any suggestions that might help?