This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ijmorlan
Recipients draghuram, ijmorlan
Date 2007-12-20.19:59:56
SpamBayes Score 0.066019386
Marked as misclassified No
Message-id <1198180797.75.0.117090965613.issue1675@psf.upfronthosting.co.za>
In-reply-to
Content
The only thing I found in the bug database concerning os.makedirs was
Issue 766910 (http://bugs.python.org/issue766910).  I realized
os.makedirs had a race condition because in my application I want to
create directories but it's perfectly fine if they already exist.  This
is exactly what trace.py in Issue 766910 seems to need.

I started writing my own, which was basically just os.makedirs but
calling my own version of os.mkdir which didn't worry about
already-existing directories, but realized that wouldn't work. 
Eventually I ended up with the routines I've put in the attached
makedirs.py.

I think os.makedirs can be fixed by making what is now its recursive
call instead call my version of makedirs.  I also think both my mkdir
and my makedirs should be present in the standard library as well as the
existing versions.  Possibly this could be done by adding a flag to the
existing versions, defaulted to obtain the current behaviour.
History
Date User Action Args
2007-12-20 19:59:57ijmorlansetspambayes_score: 0.0660194 -> 0.066019386
recipients: + ijmorlan, draghuram
2007-12-20 19:59:57ijmorlansetspambayes_score: 0.0660194 -> 0.0660194
messageid: <1198180797.75.0.117090965613.issue1675@psf.upfronthosting.co.za>
2007-12-20 19:59:57ijmorlanlinkissue1675 messages
2007-12-20 19:59:56ijmorlancreate