aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mediagoblin/storage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/storage.py b/mediagoblin/storage.py
index d697276a..90322f5a 100644
--- a/mediagoblin/storage.py
+++ b/mediagoblin/storage.py
@@ -165,7 +165,7 @@ class BasicFileStorage(StorageInterface):
# Make directories if necessary
if len(filepath) > 1:
directory = self._resolve_filepath(filepath[:-1])
- if not os.path.exists('directory'):
+ if not os.path.exists(directory):
os.makedirs(directory)
# Grab and return the file in the mode specified