summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntanas Uršulis <antanas.ursulis@gmail.com>2013-07-29 19:07:19 +0300
committerAntanas Uršulis <antanas.ursulis@gmail.com>2013-07-29 19:07:19 +0300
commit7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6 (patch)
tree61e289e23b40b36af62a0b5b1b50ee1842121d62
parentIntroduce processors and PortageProcessor. (diff)
downloadlog-analysis-7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6.tar.gz
log-analysis-7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6.tar.bz2
log-analysis-7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6.zip
More basename() defensiveness
-rw-r--r--storage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage.py b/storage.py
index 847806f..fda6c35 100644
--- a/storage.py
+++ b/storage.py
@@ -18,6 +18,6 @@ class FilesystemStorage:
except OSError:
pass # TODO: proper handling
- path = os.path.join(self.root, source, filename) # TODO: consider adding in date at some point
+ path = os.path.join(self.root, source, os.path.basename(filename)) # TODO: consider adding in date at some point
with open(path, 'wb') as f:
f.write(data)