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

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