diff options
author | Antanas Uršulis <antanas.ursulis@gmail.com> | 2013-07-29 19:07:19 +0300 |
---|---|---|
committer | Antanas Uršulis <antanas.ursulis@gmail.com> | 2013-07-29 19:07:19 +0300 |
commit | 7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6 (patch) | |
tree | 61e289e23b40b36af62a0b5b1b50ee1842121d62 | |
parent | Introduce processors and PortageProcessor. (diff) | |
download | log-analysis-7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6.tar.gz log-analysis-7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6.tar.bz2 log-analysis-7f8c730c7fc129cd58c6f7607ad032ac8f11e9f6.zip |
More basename() defensiveness
-rw-r--r-- | storage.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |