]> code.delx.au - offlineimap/commitdiff
Fixed a braino introduced in last patch
authorJohn Goerzen <jgoerzen@complete.org>
Thu, 17 Apr 2008 05:16:19 +0000 (00:16 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Thu, 17 Apr 2008 14:52:09 +0000 (09:52 -0500)
Fixes #63

offlineimap/repository/LocalStatus.py

index b3b17b1b32de869e1705eb89a2224de956912c67..66de66a2ede89c73b7cd8b491b5195db42babf17 100644 (file)
@@ -41,7 +41,8 @@ class LocalStatusRepository(BaseRepository):
         # Create parent dirs
         
         filename = self.getfolderfilename(foldername)
-        os.makedirs(os.path.dirname(foldername), 0700)
+        if not os.path.isdir(os.path.dirname(filename)):
+            os.makedirs(os.path.dirname(filename), 0700)
 
         # "touch" the file, truncating it.
         file = open(filename + ".tmp", "wt")