mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fix for issue 1149804
This commit is contained in:
parent
919697cefe
commit
abcc168c69
2 changed files with 11 additions and 1 deletions
|
|
@ -62,7 +62,14 @@ def mkdirs(dst):
|
|||
if os.sep == ':' and not ':' in head:
|
||||
head = head + ':'
|
||||
mkdirs(head)
|
||||
os.mkdir(dst, 0777)
|
||||
|
||||
try:
|
||||
os.mkdir(dst, 0777)
|
||||
except OSError, e:
|
||||
# be happy if someone already created the path
|
||||
if e.errno != errno.EEXIST:
|
||||
raise
|
||||
|
||||
|
||||
def touched(dst):
|
||||
"""Tell the finder a file has changed. No-op on MacOSX."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue