@CerealGuy: Zeichenketten enthalten in Python 2.x Bytes, dass heisst ein `len()` gibt Dir immer die Anzahl der Bytes. Ich weiss nicht was Du da mit dem `encoding` eigentlich anzustellen versuchst.
So komische Namenszusätze wie `_handler` versuche ich mir in Python wenn es geht zu sparen. Du kannst ...
Die Suche ergab 2 Treffer
- Donnerstag 30. Mai 2013, 23:31
- Forum: Netzwerkprogrammierung
- Thema: FTPLib aktuelle Downloadgeschwindigkeit
- Antworten: 7
- Zugriffe: 2589
- Donnerstag 30. Mai 2013, 21:59
- Forum: Netzwerkprogrammierung
- Thema: FTPLib aktuelle Downloadgeschwindigkeit
- Antworten: 7
- Zugriffe: 2589
FTPLib aktuelle Downloadgeschwindigkeit
import ftplib
import time
class ftp_transfer_callback_handler():
def __init__(self, filepath, callback = None, encoding = None):
"""
Init class, if u want encoding set it :D
Encoding just for blocksize, not for writing.
"""
self.file = open(filepath, "wb")
self.filepath = filepath
self ...
import time
class ftp_transfer_callback_handler():
def __init__(self, filepath, callback = None, encoding = None):
"""
Init class, if u want encoding set it :D
Encoding just for blocksize, not for writing.
"""
self.file = open(filepath, "wb")
self.filepath = filepath
self ...
