Fixed a braino introduced in last patch

Fixes #63
This commit is contained in:
John Goerzen 2008-04-17 00:16:19 -05:00
parent 145f18ac25
commit 031e018ead
1 changed files with 2 additions and 1 deletions

View 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")