pyftpc x02ht camera

## FTPアップロードのサンプル

## -- pyftpc x02ht camera
(ip, name, ps)='ip name password'.split()

import os
from datetime import datetime
from ftplib import FTP
os.chdir('/usr/my documents/my pictures')
s=os.listdir('.')[-1]
t=datetime.strftime(datetime.today(),'%y%m%d')
f=open(s,'rb') ##1a
c=FTP(ip)
c.login(name,ps)
c.storbinary('stor %s-%s'%(t,s),f)
c.close()
f.close()


---
## FTP鯖
## pyftpdlib basic_ftpd.py