Skip to content

Commit

Permalink
Fixed a braino introduced in last patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoerzen committed Apr 17, 2008
1 parent 145f18a commit 031e018
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion offlineimap/repository/LocalStatus.py
Expand Up @@ -41,7 +41,8 @@ def makefolder(self, foldername):
# 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")
Expand Down

0 comments on commit 031e018

Please sign in to comment.