Commits

Steve Borho committed 312b1ba

visdiff: use os.makedirs() to re-create diff folder when necessary (fixes #1151)

Comments (0)

Files changed (1)

tortoisehg/hgqt/visdiff.py

     base = os.path.join(qtlib.gettempdir(), dirname)
     fns_and_mtime = []
     if not os.path.exists(base):
-        os.mkdir(base)
+        os.makedirs(base)
     for fn in files:
         wfn = util.pconvert(fn)
         if not wfn in ctx: