Don't try and create a directory with a blank string.
authorW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 14:42:02 +0000 (10:42 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 16 Mar 2012 14:42:02 +0000 (10:42 -0400)
h5config/storage/__init__.py

index 13992e20510e285a1950318872b189a54978d05f..00d6ccade0817ea7a7e0a9069a05b860d6898bd6 100644 (file)
@@ -52,5 +52,5 @@ class FileStorage (Storage):
 
     def _create_basedir(self, filename):
         dirname = _os_path.dirname(filename)
-        if not _os_path.isdir(dirname):
+        if dirname and not _os_path.isdir(dirname):
             _os.makedirs(dirname)