summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
Diffstat (limited to 'logbot.py')
-rw-r--r--logbot.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/logbot.py b/logbot.py
index 5af885a..0b9eb8e 100644
--- a/logbot.py
+++ b/logbot.py
@@ -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: