##// END OF EJS Templates
patch: simplify directory creation
Patrick Mezard -
r5653:1b35bc1c default
parent child Browse files
Show More
@@ -321,12 +321,7 b' class patchfile:'
321 321 if not self.exists:
322 322 dirname = os.path.dirname(fname)
323 323 if dirname and not os.path.isdir(dirname):
324 dirs = dirname.split(os.path.sep)
325 d = ""
326 for x in dirs:
327 d = os.path.join(d, x)
328 if not os.path.isdir(d):
329 os.mkdir(d)
324 os.makedirs(dirname)
330 325
331 326 self.hash = {}
332 327 self.dirty = 0
General Comments 0
You need to be logged in to leave comments. Login now