Removed old configs and added debug to file upload

This commit is contained in:
Chris Oliver 2011-10-22 11:10:59 -05:00
parent aa7bfe56ae
commit b8b847fb88
3 changed files with 1 additions and 49 deletions

View file

@ -206,7 +206,7 @@ class Logbot(SingleServerIRCBot):
full_fname = os.path.join(root, fname)
remote_fname = "/".join(full_fname.split("/")[1:])
print repr(remote_fname)
if DEBUG: print repr(remote_fname)
try:
self.ftp.storbinary("STOR %s" % remote_fname, open(full_fname, "rb"))
except ftplib.error_perm, e: