Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ftplib
- import sys
- import os
- ftpServer = '10.88. '
- ftpUser = ' '
- ftpPass = ' '
- #ftpPath = 'FileFlowStatus/'
- ftpPath = '/'
- def reportThis(filename, filecontent):
- f = file(filename,'wb')
- f.close()
- # f = file(filename,'rb')
- # s = ftplib.FTP(ftpServer, ftpUser, ftpPass) # Connect
- # s.storbinary('STOR '+ftpPath+filename, f) # Send the file
- # s.quit()
- # f.close() # Close file and FTP
- # os.remove(filename)
- if __name__ == '__main__':
- reportThis("houby", "blah")
Add Comment
Please, Sign In to add comment