Kaydet (Commit) 6fccc8a9 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

[Bug #829532] Invoking os.makedirs() with an argument that contains a

    directory name with a single dot fails.  The patch skips creating
    directories named os.curdir. (Patch by Bram Moolenaar)

2.3 bugfix candidate.
üst 7fc4cf57
......@@ -152,6 +152,8 @@ def makedirs(name, mode=0777):
head, tail = path.split(head)
if head and tail and not path.exists(head):
makedirs(head, mode)
if tail == curdir: # xxx/newdir/. exists if xxx/newdir exists
return
mkdir(name, mode)
def removedirs(name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment