summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'storage.py')
-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)