diff options
author | Chris Oliver <excid3@gmail.com> | 2012-01-19 13:18:10 -0600 |
---|---|---|
committer | Chris Oliver <excid3@gmail.com> | 2012-01-19 13:18:10 -0600 |
commit | a7f48ea6cc2f13450fe58db008ad4b3cbd5deb4e (patch) | |
tree | b66aef92eb1964b8189397da091998a770f56a2d | |
parent | 1700265b187bc23d17618df90fa52131b4dd5883 (diff) | |
download | logbot-a7f48ea6cc2f13450fe58db008ad4b3cbd5deb4e.tar.xz |
Use python path splitting to allow windows filename parsing
-rw-r--r-- | logbot.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -205,9 +205,8 @@ class Logbot(SingleServerIRCBot): for fname in files: full_fname = os.path.join(root, fname) - remote_fname = "/".join(full_fname.split("/")[1:]) + remote_fname = "/".join(os.path.split(full_fname)[1:]) if DEBUG: print repr(remote_fname) - if not remote_fname: continue try: self.ftp.storbinary("STOR %s" % remote_fname, open(full_fname, "rb")) except ftplib.error_perm, e: |