14 ŞUBAT 2011, PAZARTESİ
Tek satır server python ile ftp
Python bir satır bir komut basit bir ftp sunucu yapmak mümkün mü? Bir ftp sunucusu yüklemek zorunda kalmadan linux kutusu için dosyaları aktarmak için hızlı ve geçici olarak bu şekilde yapmak istiyorum. Bir şekilde python kütüphaneleri yerleşik kullanarak hiçbir ekstra yükleme yok yani tercihen.
CEVAP
14 ŞUBAT 2011, PAZARTESİ
Zorunlu Çarpık örnek:
twistd -n ftp
Ve muhtemelen yararlı:
twistd ftp --help
Usage: twistd [options] ftp [options].
WARNING: This FTP server is probably INSECURE do not use it.
Options:
-p, --port= set the port number [default: 2121]
-r, --root= define the root of the ftp-site. [default:
/usr/local/ftp]
--userAnonymous= Name of the anonymous user. [default: anonymous]
--password-file= username:password-style credentials database
--version
--help Display this help and exit.
Bunu Paylaş:
Nasıl (şap) Python bir satır kaldırabi...
Neden Standart girdiden okuma satır Py...
Python: okuma diziye satır satır dosya...
Nasıl baskı yeni satır veya boşluk olm...
Nasıl bir satır sonu (line devamı) Pyt...