r56568 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56567‎ | r56568 | r56569 >
Date:21:48, 17 September 2009
Author:tomasz
Status:ok
Tags:
Comment:
mkdir -p functionality
Modified paths:
  • /trunk/backup/WikiDump.py (modified) (history)

Diff [purge]

Index: trunk/backup/WikiDump.py
@@ -251,7 +251,7 @@
252252 def lock(self):
253253 if not os.path.isdir(self.privateDir()):
254254 try:
255 - os.mkdir(self.privateDir())
 255+ os.makedirs(self.privateDir())
256256 except:
257257 # Maybe it was just created (race condition)?
258258 if not os.path.isdir(self.privateDir()):

Status & tagging log